import sys for x1 in range(1, 101): flg = 0 ls = [[] for _ in range(100)] for b in range(1, 101): for a in range(b): ls[(x1+a)%b].append([a, b]) cnd = [0] * 100 for i in range(100): for x2 in range(1, 101): s = set() for a, b in ls[i]: s.add((x2+a)%b) if len(s) == len(ls[i]): cnd[i] = x2 break if cnd[i] == 0: flg = 1 break if flg: continue else: print(f"? {x1}") sys.stdout.flush() y1 = int(input()) print(f"? {cnd[y1]}") y2 = int(input()) for a, b in ls[y1]: if (cnd[y1] + a) % b == y2: print(f"! {a} {b}") break