n = int(input()) if n==1: ans = '1' else: s = '' for i in reversed(range(n)): s += str(i) ans = s*n print(int(ans))