use std::io;

fn main() {
    let mut buf = String::new();
    io::stdin().read_line(&mut buf).unwrap();
    let k: u64 = buf.trim().parse().unwrap();
    for i in 1..k+1 {
        let mut n_nine = 0;
        let mut i = i;
        while i > 9 {
            i -= 9;
            n_nine += 1;
        }
        if i != 0 {
            print!("{}", i);
        }
        println!("{}", (0..n_nine).map(|_| "9").collect::<String>());
    }
}
