#include using namespace std; void fast_io() { ios::sync_with_stdio(false); std::cin.tie(nullptr); } int main() { fast_io(); int n; cin >> n; int l = 0, r = n; for (int i = 0; i < 8; i++) { int mid = (l + r) / 2; cout << "? " << mid << endl; int c; cin >> c; if (c == mid) { l = mid; } else { r = mid; } } int cl, cr; cout << "? " << l << endl; cin >> cl; cout << "? " << r << endl; cin >> cr; if (cl == cr) { cout << "Yes " << l << " " << r << endl; } else { cout << "No" << endl; } }