#include <string.h>
#include <stdio.h>
using namespace std ;
int main(){
char line[1000] ;
int l = 0 ;
bool second = false ;
while( gets(line) ){
l = strlen(line) ;
for(int i = 0 ; i < l; i++){
if( line[i] == '"' && second == false){
printf("``") ;
second = true ;
}
else if(line[i] == '"' && second == true){
printf("''") ;
second = false ;
}
else printf("%c", line[i]) ;
}//end of for
printf("\n") ;
}
return 0 ;
}