N = int(input()) j = N while j > 0: for i in range(j): print(str(N), end="") print() j -= 1