th = pow(10, 100) v = 1 while v <= th: print('? 1', v) v <<= 1 while v >= 1: print('? 1', v) v >>= 1 print('! 0')