use std::io::Read; fn solve(n: usize) { println!( "{}" , ((10-n)..=9).rev() .map(|i| (0..n).map(|_| i.to_string()).collect::>()) .flatten() .collect::>() .join("") ); } fn main() { let mut n = String::new(); std::io::stdin().read_to_string(&mut n).ok(); let n: usize = n.trim().split('\n').next().unwrap().trim().parse::().unwrap(); solve(n); }