#include<iostream>
#include<string.h>
using namespace std;
int main(){
char x[100];
bool rec = true;
while(cin.getline(x, 100)){
for(int i = 0; i<strlen(x); i++)
if(x[i] == '"'){
if(rec)
cout << "``";
else
cout << "''";
rec = !rec;
}
else
cout << x[i];
cout << endl;
}
}