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

using namespace std;

#define D(x)

long long i,k, b=1,v=1, last = 68;
int f() {
    int ok = -1;
    if (b&k) ok = last;
    b<<=1;
    return ok;
}
int main()
{
    cin >> k;
    cout << last << "\n";
    for(i=1;i<33*2;i+=2) {
        D(cout << i << ": ");
        cout << i+1 << " " << i+2 << "\n";
        D(cout << i+1 << ": ");
        cout << i+2 << " " << f() << "\n";
    }

    D(cout <<i++ << ":");
    cout << "-1 -1\n";
    D(cout <<i++ << ":");
    cout << "-1 -1\n";

}