INF = 10 ** 20 import sys input = sys.stdin.readline sys.setrecursionlimit(100000000) dy = (-1,0,1,0) dx = (0,1,0,-1) from heapq import heappop,heapify,heappush from bisect import bisect_left def main(): n = int(input()) if n == 1: print(1) return ans = '' num = list('0123456789') for i in range(n - 1,-1,-1): ans += num[i] * n print(ans) if __name__ == '__main__': main()