import java.util.*; public class Main { public static void main(String[] args) { int max = 1000000000; int b = max / 2; int ask = max / 2; Scanner sc = new Scanner(System.in); IN : for (int i = 0; i < 100; i++) { System.out.println("? " + ask); b /= 2; if (sc.nextInt() == 1) { ask += b; } else { ask -= b; } if (b == 0) { ask -= 13; while (true) { System.out.println("? " + ask); if (sc.nextInt() == 1) ask++; else { System.out.println("! " + (ask - 1)); break IN; } } } } } }