#include <iostream>
#include <sstream>
using namespace std ;
int main ()
{
string line ;
bool a = true;
while(getline(cin ,line)){
ostringstream ss ("");
for(unsigned int x=0;x<line.length();x++){
if(line[x]=='"'){
if(a) ss << "``";
else ss << "''";
a=!(a);
}
else ss << line[x] ;
}
cout << ss.str() << endl ;
}
return 0;
}