#include typedef long long ll; const int MAXN = 2e5 + 5; using namespace std; int a[MAXN], N, res, tmp; int main() { ios::sync_with_stdio(false); cin >> N; for (int i = N; i >= 1; --i) { cout << i << " " << 1 << endl; cout << 0 << endl; cin >> tmp; if (tmp + a[i]) { res += i * (tmp + a[i]); for (int j = 1; j < i; ++j) { if (i % j == 0) a[j] = a[j] - (tmp + a[i]); } } } cout << 0 << " " << 1 << endl; cout << res << endl; return 0; }