def main(): start = input() print(f"? {start*2}", flush=True) used = set((start*2, )) while True: res, arg = input().split() if res == "!": return used.add(arg) print(f"? {arg[-1]}{start}", flush=True) if __name__ == "__main__": main()