#include using namespace std; int main(){ int n;cin>>n; int ret = 0; for(int i = 1; n >= i; i++){ cout << "? " << i << endl; int x;cin>>x; ret = max(x,ret); } cout << "! " << ret << endl; }