#include<bits/stdc++.h>
using namespace std;
const int N=2e5;
int n,m,k;

struct ST{
	int head=1,tail=2;
	int q[N];
	
	int top(){
		return q[tail];
	}
	
	int back(){
		return q[head];
	}
	
	void push(int x){
		q[++tail]=x;
		return;
	}
	
	void pop_back(){
		tail--;
		return;
	}
	
	void pop_front(){
		head++;
		return;
	}
	
}s[305];


int main(){
	freopen("meow.in","r",stdin);
	freopen("meow.out","w",stdout);
	int T;
	scanf("%d",&T);
	
	if(T==1){
		printf("5\n");
		printf("1 1\n");
		printf("1 1\n");
		printf("1 2\n");
		printf("2 1 1\n");
		printf("1 1\n");
	}
	else{
		printf("2\n");
		printf("1 1\n");
		printf("1 1\n");
	}
	return 0;
}
//Although I have to AFO,
//But I love OI forever.
//Hope everyone can achieve his or her dream
//for me
//maybe it's time to say goodbye
