#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <stdint.h>
#include <string.h>
#include <wchar.h>

#define MIN(a, b) (a < b ? a : b)
#define MAX(a, b) (a > b ? a : b)

static uint32_t SN[10];

int main(void) {
	uint64_t K;

	scanf("%"PRIu64, &K);

	uint64_t count = 0;
	while (count < K && count < 9){
		count == K - 1 ? printf("%"PRIu64, (uint64_t)(count + 1)) : printf("%"PRIu64"\n", (uint64_t)(count + 1));

		count++;
	}
	while (count < K) {
		count == K - 1 ? printf("%"PRIu64, (uint64_t)((count - 8) * 10) + 9) : printf("%"PRIu64"\n", (uint64_t)((count - 8) * 10 + 9));

		count++;
	}

	return 0;
}
