n = int(input()) if n != 1: [print(str(z) * n, end='') for i, z in enumerate(range(n - 1, -1, -1)) if i < n] print() else: print(1)