use std::str::FromStr;
use std::fmt::Debug;
use std::cmp;

#[allow(dead_code)]
fn read_as_vec<T>() -> Vec<T>
where T: FromStr, <T as FromStr>::Err : Debug{
    let mut s = String::new();
    std::io::stdin().read_line(&mut s).unwrap();
    s.trim().split_whitespace().map(|c| T::from_str(c).unwrap()).collect()
}

#[allow(dead_code)]
fn read_as_string() -> String{
    let mut s = String::new();
    std::io::stdin().read_line(&mut s).unwrap();
    s.trim().to_string()
}

fn main(){
    let k = read_as_vec::<usize>()[0];

    let mut count: usize = 0;
    let mut base: usize = 1;
    loop {
        for i in 1..10{
            println!("{}", base*i + (base-1));
            count += 1;
            if count >= k{
                return;
            }
        }
        base *= 10;
    }
 }
