a = input() print("?",a*2) while True: x,y = input().split() if x == "!": exit() else: print("?",y[1]+a)