n = int(input()) s = str(n) for i in reversed(range(1, n+1)): print(s*i)