N = int(input()) for n in range(N): print(str(N) * (N-n))