N=2 while N<64:f=lambda b,n=N:n*' 'and f(b,n//b)+chr(48+n%b+(n%b>9)*39);N+=1;print(*map(f,range(2,N)))