#include <bits/stdc++.h>
using namespace std;
int main() {
  int a[200] = {
      1,   2,   3,   4,   5,   6,   7,   8,   9,   19,  18,  17,  16,  15,  29,
      14,  28,  27,  13,  26,  39,  38,  25,  37,  49,  12,  24,  36,  48,  59,
      47,  35,  58,  23,  46,  69,  57,  34,  68,  79,  45,  56,  67,  78,  89,
      11,  22,  33,  44,  55,  66,  77,  88,  99,  98,  87,  76,  65,  54,  97,
      43,  86,  75,  32,  64,  96,  85,  53,  74,  95,  21,  42,  63,  84,  94,
      73,  52,  83,  31,  62,  93,  72,  41,  82,  92,  51,  61,  71,  81,  91,
      10,  20,  30,  40,  50,  60,  70,  80,  90,  199, 189, 179, 169, 159, 149,
      139, 129, 119, 109, 198, 188, 178, 168, 158, 148, 138, 197, 128, 187, 118,
      177, 167, 108, 157, 147, 196, 186, 137, 176, 127, 166, 117, 156, 195, 185,
      146, 107, 175, 136, 165, 194, 126, 155, 184, 116, 145, 174, 193, 164, 299,
      135, 106, 289, 183, 154, 279, 125, 298, 173, 269, 144, 192, 288, 259, 163,
      278, 115, 297, 182, 249, 134, 268, 287, 153, 239, 172, 258, 277, 191, 296,
      105, 229, 124, 248};
  int k;
  cin >> k;
  for (int i = 0; i < k; i++) cout << a[i] << endl;
  return 0;
}
