N=int(input()) S=''.join(list(map(str,list(range(1,N+1)))))*N print(S)