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