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