import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner scn = new Scanner(System.in);
//System.out.println("enter no. of rows");
int n = scn.nextInt();
int nst = 1;
// rows
int row = 1;
while (row <= n) {
// work
if (row % 2 == 0) {
int cst = 1;
while (cst <= nst) {
if (cst == 1 || cst == row) {
System.out.print("1");
} else {
System.out.print("0");
}
cst++;
}
} else {
int cst = 1;
while (cst <= nst) {
System.out.print("1");
}
}
// preparation
System.out.println();
row = row + 1;
nst = nst + 1;
}
}
}