#include <bits/stdc++.h>
using namespace std;
const int N = 100000 + 5;
int a[N];
int main() {
  int n;
  while (scanf("%d", &n) == 1) {
    int k = 0;
    int cnt = 0;
    while (k < n) {
      for (int i = 1; i <= 8; i++) {
        printf("%d", i);
        for (int j = 1; j <= cnt; j++) {
          printf("9");
        }
        printf("\n");
        k++;
        if (k >= n) {
          break;
        }
      }
      if (cnt == 0 && k < n) {
        k++;
        printf("9\n");
      }
      cnt++;
    }
  }
}
