print("? 100") x = int(input()) print("?",100-x-1) b = int(input()) + 1 a=0 for i in range(0,101): if (i+100)%b == x: a = i break if x == 99: a = 99 b=100 print("!",a,b)