N = int(input()) L = [1,2,3,4,5,6,7,8,9,0] ans = "" for i in range(N): ans += str(L[i])*N print(ans)