# coding: utf-8 N = int(input()) ans = "" if N == 1: print(1) exit() for i in range(N)[::-1]: ans += str(i) * N print(ans)