#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a = n / 9;
  int b = n % 9;
  for (register int i = 0; i < a; i++) {
    for (register int j = 1; j <= 9; j++) {
      printf("%d", j);
      for (register int k = 0; k < i; k++) {
        printf("9");
      }
      printf("\n");
    }
  }
  for (register int j = 1; j <= b; j++) {
    printf("%d", j);
    for (register int k = 0; k < a; k++) printf("9");
    printf("\n");
  }
  return 0;
}
