1 #include <iostream>
   2 #include <sstream>
   3 #include <string>
   4 #include <algorithm>
   5 #include <vector>
   6 using namespace std;
   7 
   8 #define GI ({int _t; scanf("%d", &_t); _t;})
   9 #define FOR(i, a, b) for (int i=a; i<b; i++)
  10 #define REP(i, a) FOR(i, 0, a)
  11 template<class T> string toString(T n){ostringstream ost;ost<<n;ost.flush();return ost.str();}
  12 int toInt(string s){int r=0;istringstream sin(s);sin>>r;return r;}
  13 #define DBGV(_v) { REP(_i, _v.size()) { cout << _v[_i] << "\t";} cout << endl;}
  14 
  15 int main() {
  16 	string line;
  17 	bool start = true;
  18 	while (getline(cin, line)) {
  19 		line += "\n";
  20 		REP(i, line.size()) {
  21 			if (line[i] == '"') {
  22 				if (start == true) {
  23 					printf("``");
  24 					start = false;
  25 				}
  26 				else if (start == false) {
  27 					printf("''");
  28 					start = true;
  29 				}
  30 			}
  31 			else {
  32 				printf("%c", line[i]);
  33 			}
  34 		}
  35 	}
  36 	return 0;
  37 }