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
#include <iostream>

using namespace std;

int main()
{
    int n;
    cin>>n;
    cout<<92<<endl;
    cout<<2<<" "<<3<<endl;
    for(int i=0; i<29; i++){
        if(n%2){
            cout<<(3*i+4)<<" "<<92<<endl;
        }else{
            cout<<(3*i+4)<<" "<<-1<<endl;
        }
        n/=2;
        cout<<3*i+5<<" "<<3*i+6<<endl;
        cout<<3*i+5<<" "<<3*i+6<<endl;
    }
    if(n==1){
        cout<<91<<" "<<92<<endl;
    }else{
        cout<<91<<" "<<-1<<endl;
    }
    cout<<-1<<" "<<-1<<endl;
    cout<<-1<<" "<<-1<<endl;
    cout<<-1<<" "<<-1<<endl;
}