N = int(input()) output = "" for num in reversed(range(N)): output += str(num)*N print(output)