import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int min=1; int max=(int)Math.pow(10,9); while(true){ int mid=min+(max-min)/2; System.out.println("? "+mid); int x = sc.nextInt(); if(x==1){ min=mid; }else{ max=mid-1; } if(max==min){ System.out.println("! "+max); break; } } } }