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