import java.io.*; import java.util.*; public class E_matsu{ public static void main(String args[])throws IOException{ Scanner sc = new Scanner(System.in); int table[][] = new int[5][5]; int n = sc.nextInt(); for(int k=0;k