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
#include <bits/stdc++.h>

using namespace std;

int main(){
	int n; cin>>n;
	cout<<95<<'\n';
	cout<<64<<" "<<-1<<'\n';
	for(int i = 2; i < 62; i+=2){
	//	cout<<i<<": ";
		cout<<i+2<<" "<<i+3<<'\n';
	//	cout<<i+1<<": ";
		cout<<i+2<<" "<<i+3<<'\n';	
	}
	cout<<95<<" "<<-1<<'\n';	
	cout<<95<<" "<<-1<<'\n';	
	for(int i = 0;i < 30; i++){
		//cout<<i+64<<": ";
		cout<<64+i+1<<" ";
		if(n&(1<<i)){
			cout<<63-(2*i)<<'\n';
		}else cout<<-1<<'\n';
	}
	cout<<-1<<" "<<-1<<'\n';
	cout<<-1<<" "<<-1<<'\n';
	return 0;
}