a=input() print("?",a+a) while True: s0,s1=input().split() if s0=="!": break a,b=s1 print("?",b+a)