n = int(input()) if n == 1: print('1') else: res = "" for i in range(n - 1, -1, -1): res += str(i) * n print(res)