import sys input = sys.stdin.readline a = input().strip() st = a while True: print("?", a+st, flush=True) ret = input().split() if ret[0]=="!": break a = ret[1][1]