1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <iostream>

using namespace std;

int main()
{
    int k;
    cin>>k;

    cout<<100<<endl;
    for (int i=0; i<32; ++i)
    {
        int i3=i*3;
        cout<<i3+2<<' '<<i3+3<<endl;
        cout<<-1<<' '<<i3+4<<endl;
        cout<<i3+4<<' ';
        if (k&(1LL<<i)) cout<<100;
        else cout<<-1;
        cout<<endl;
    }
    for (int i=0; i<4; ++i)
        cout<<"-1 -1"<<endl;
    return 0;
}