#include <bits/stdc++.h>
using namespace std;
const long long INF = (long long)1e9;
const long long MOD = (long long)1e9 + 7;
const double EPS = (double)1e-10;
struct Accelerate_Cin {
  Accelerate_Cin() {
    cin.tie(0);
    ios::sync_with_stdio(0);
    cout << fixed << setprecision(20);
  };
};
long long mod_pow(long long x, long long n, long long MOD) {
  if (n == 0) return 1;
  long long res = mod_pow(x * x % MOD, n / 2, MOD);
  if (n % 2 == 1) res = res * x % MOD;
  return res;
}
signed main() {
  long long K;
  cin >> K;
  long long t = 1, l = 1;
  while (t <= K) {
    for (long long m = 2; m <= 10; m++) {
      long long x = l / 10;
      t++;
      l++;
      if (t > K) break;
      cout << m * mod_pow(10, x, MOD) - 1 << "\n";
    }
    l++;
  }
  return 0;
}
