package yukicoder; import java.util.Scanner; public class N401 { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int N=sc.nextInt(); int drc=0; int now=1; int i=0,j=0; int[][] h=new int[N][N]; for(int k=0;k