alpha=input() nxt=alpha while 1: nxt+=alpha print(f"? {nxt}",flush=True) ope,txt=input().split() if ope=="!":exit() else: nxt=txt[1]