a = input() s = set() while True: t = a[-1] * 2 if t not in s: s.add(t) print('?', t, flush = True) else: for i in range(26): for j in range(26): t = chr(i + ord('a')) + chr(j + ord('a')) if t not in s: s.add(t) print('?', t, flush = True) b = input() if b[0] == '?': t, _ = input().split() else: break