N=int(input()) S=''.join(list(map(str,list(range(1,N+1)))))*N if 1<=N<=9: print(S) else: print('1234567890'*10)