from collections import * from itertools import * from functools import * from heapq import * import sys,math input = sys.stdin.readline N = int(input()) X = [str(i) for i in range(9,-1,-1)] ans = '' for i in range(N): ans += X[i]*N print(ans)