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

int main() {
    std::ios_base::sync_with_stdio(0);
    int k;
    std::cin >> k;


    std::cout << "92\n";
    std::cout << "2 3\n";
    int b = 1;
    for (int i=1;i<30;++i) {
        std::cout << i*3+2 << " " << i*3+3 << "\n";
        std::cout << i*3+1 << " " << ( k&b ? 92 : -1 ) << "\n";
        std::cout << i*3+2 << " " << i*3+3 << "\n";
        b <<= 1;
    }
    std::cout << "-1 -1\n";
    std::cout << 91 << " " << ( k&b ? 92 : -1 ) << "\n";
    std::cout << "-1 -1\n";
    std::cout << "-1 -1\n";
    return 0;
}