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