N=int(input()) for i in range(N): L=[0 for _ in range(N-1-i)]+[1 for _ in range((i+1)%2)]+[2 for _ in range(((i+1)//2)*2)] print(*L,sep="")