#include<bits/stdc++.h>
define fast(io) ios_base::sync_with_stdio(false); cin.tie(NULL);
using namespace std;
int main(){
vector<pair<int, int>> round;
int n, player1, player2;
cin >> n;
for (int i = 0; i < n; ++i)
{
round.push_back({player1, player2});
/* code */
}
int sum=0;
int k = sum + player1;
int h = sum + player2;
if(k > h){
cout << 1<< " " ;
}else{
cout << 2 << " ";
}
for(auto &value : round){
cout << value.first << " "<<value.second<<endl;
}
fast(io);
}