import java.util.*;
import java.math.*;
public class Zadatak1 {

    public static void main(String[] args) {

        Scanner a = new Scanner(System.in);
        int K=nextInt();
        int a=K+2;
        for(int i=0;i<=a;i++){
            System.out.println("0 "+i);
        }
        

    }
}