import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); // your code goes here int[][] a = new int[n][n]; for (int i= 1; ii) { a[i][j]=n-1; } if (i>n/2 && j>n/2) { a[i][j]= -1; } if (i==j && i==n-1) { a[i][j]=1; } a[j][i]=a[i][j]; } } // print for (int i=1; i