import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int l = 1; int r = 1000000000; int mid = (l + r) / 2; for(int i = 0; i < 100; i++) { System.out.println("? " + mid); int t = scan.nextInt(); if(t == 1) { l = mid; mid = (l + r) / 2; }else { r = mid; mid = (l + r) / 2; } if(l == r) { System.out.println("! " + l); System.exit(0); } } scan.close(); } }