#38871: python參考


s12350325@go.thu.edu.tw (王嘉葳@go.thu)


n=0
try :
    while(True):
        N=input()
        for i in N:
            if (i == '"'):
                n+=1
                if (n%2 == 1):
                    print("``", end="")
                else:
                    print("''", end="")
            else:
                print(i, end="")
        print('')
except:
    pass