a = input() def p(z): print(f"? {z}") p(a*2) while True: t = input().split() if t[0] == '!': break p(t[1][::-1])