import sys N = int(input()) ans = "" if N == 1: print (1) sys.exit() for i in range(N): i = N-i-1 for j in range(N): ans += str(i) print (ans)