A=input() print('?',A+A) for _ in range(30): res,R=input().split() if res=='!': exit() print('?',R[1]+A)