1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include<bits/stdc++.h> 
using namespace std;

//g++ -O3 -static 5C_dag/5C1.cpp -std=c++11 -o 5C_dag/5c1

int main(){
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    long long k;
    cin >> k;
    cout << "82\n";
    for(int i = 1; i < 81; i++){
        cout << i + 1 << " ";
        if(i % 2 == 1){
            cout << i+2 << "\n";
        }else{
            long long n = 1;
            n <<= (i/2 - 1);
            n &= k;
            if(n){
               // cout << "lucky number " << i/2 - 1 << endl;
                cout << "82\n";
            }else{
                cout << "-1\n";
            }
        }
    }
    cout << "-1 -1\n-1 -1\n";
    return 0;
}