#include <bits/stdc++.h>

using namespace std;

#define REP(i,n) for(int i=0;i<int(n);i++)
typedef long long ll;
typedef pair<int,int> P;


int main(void){
	ll i;

	cin.tie(0);  ios_base::sync_with_stdio(false);

	vector<ll> x,y,xx,yy;
	ll c=0,n=1000000000;
	for(i=0;;i++){
		if(n-i<=0) break;
		n-=i;
		x.push_back(n);
		y.push_back(i);
		c++;
	}

	cout << 4*c-2<< endl;

	for(i=c-1;i>=0;i--){
		xx.push_back(-x[i]);
		yy.push_back(y[i]);
	}


	for(i=0;i<c;i++){
		cout << x[i] << ' ' << y[i] << endl;
	}

	for(i=0;i<c;i++){
		cout << xx[i] << ' ' << yy[i] << endl;
	}

	for(i=c-2;i>=0;i--){
		cout << xx[i] << ' ' << -yy[i] << endl;
	}

	for(i=c-1;i>=1;i--){
		cout << x[i] << ' ' << -y[i] << endl;
	}

	cout.flush();


	return 0;
}