md = 1000000007 N = int(input()) n = 1 for i in range(N): n = n * 10 + 3 while n >= md: n = n-md print(n)