import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner scn = new Scanner(System.in);
int n= scn.nextInt();
int nst=1;
int num=1;
for(int row=1;row<=n;row++){
System.out.println();
for(int col=1;col<=nst;col++){
if(row%2!=0||col==1||row==col){
System.out.print(num);
}else{
System.out.print("0");
}
}
nst=nst+1;
}
}
}