a = input() b = a while 1: print(f"? {b}{a}") op = input().split() if op[0] == "!": break b = op[1][1]