#include using namespace std; typedef long long ll; typedef long double ld; typedef pair ii; typedef vector vi; typedef vector vvi; typedef vector vvvi; typedef vector vvvvi; typedef vector vii; #define x first #define y second #define pb push_back #define eb emplace_back #define all(v) (v).begin(), (v).end() void run() { ll n; cin >> n; ll r = 0; ll a = 0; for (ll i = 1; i <= n; i++) { cout << "? " << a << " " << i << endl; string b; cin >> b; if (b == "absent") { r++; a = i; } } cout << "! " << r << endl; } signed main() { ios_base::sync_with_stdio(false); cin.tie(0); cout << fixed << setprecision(20); run(); return 0; }