#include <bits/stdc++.h>
using namespace std;
double PI = acos(-1);
long long int digit(long long int n) {
  long long r = 0;
  while (n) {
    r += n % 10;
    n /= 10;
  }
  return r;
}
int arr[10000005];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  long long int n, m, T, res, a, b, c, x, y, z;
  long long int maxi = -(1 << 30) - 1, mini = (1 << 30) - 1, count = 0;
  long long int i, j, k;
  bool flag;
  string s1, s2;
  char s[100000];
  int ara[100005], ara2[100005];
  cin >> k;
  i = 1;
  while (i <= k && i < 10) {
    cout << i << endl;
    i++;
  }
  y = 9;
  x = 10;
  while (i <= k) {
    y += x;
    cout << y << endl;
    a = 0;
    m = x + y;
    while (m) {
      a += m % 10;
      m /= 10;
    }
    b = 0;
    m = y + x * 10;
    while (m) {
      b += m % 10;
      m /= 10;
    }
    cout << (x + y) * b << " " << a * (y + x * 10) << endl;
    if ((x + y) * b >= a * (y + x * 10)) {
      x = x * 10;
    }
    i++;
  }
}
