N = int(input()) ans = [] for i in range(N): c = str((i + 1) % 10) ans.append(c * N) print("".join(ans))