N = int(input()) ans = "" for i in range(1,N + 1): for j in range(N): ans += str(i) print(ans)