""" 100+A % B = C 1回目も有効活用しないとだめ (100+A) % B = C (100+A-C-1) % B = B-1 で、Bがわかる AはB未満なので、一意 """ import sys print ("?",100,flush=True) c = int(input()) print ("?",100-c-1,flush=True) d = int(input()) b = d + 1 for a in range(1,b): if (100+a) % b == c: print ("!",a,b) sys.exit() a = 0 for b in range(1,101): if (a+100) % b == c and (100+a-c-1) % b == d: print ("!",a,b) sys.exit()