print(1000, 1000)
for i in range(1, 1001):
	if i == 1:
		print(1000, 1)
	else:
		print(1001 * (i - 1), i)