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