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