n=int(input()) print("".join([str(i)*n for i in range(n-1,-1,-1)]))