N = int(input()) if N == 1: print(1) else: out = str() for i in range(N,0,-1): s = str(i) * N out += s print(out)