import sys import random readline = sys.stdin.readline write = sys.stdout.write flush = sys.stdout.flush # クエリ: "? x1 x2" を出力 def query(x): s = str(x).zfill(10) write("%s\n" % s) flush() # ジャッジから返される値を取得 n,l = readline().strip() if l == 'unlocked': exit(0) return int(n) while True: r = random.randint(0, 10**10-1) n,ans = query(r) if n==0: break q = [0]*10 for i in range(10): for j in range(10): q[i]=j x = int(''.join(map(str, q))) if query(x)==i+1: break