
import java.io.*;
import java.lang.*;
import java.util.*;

public class C1325 {
    public static void main(String[] args) throws IOException{
        StringBuffer ans = new StringBuffer();
        StringTokenizer st;
        BufferedReader f = new BufferedReader(new InputStreamReader(System.in));
        st = new StringTokenizer(f.readLine());
        int n = Integer.parseInt(st.nextToken());
        System.out.println(1);
        System.out.println(0);
        f.close();



        System.out.println(ans);
    }

}