n = int(input()) ans = "" for i in range(n): ans += str(9-i)*n print(ans)