n = int(input()) for _ in range(n): for i in range(n-1, -1, -1): print(str(i), end='') print()