fn main() { let mut n = String::new(); std::io::stdin().read_line(&mut n).ok(); let n: u32 = n.trim().parse().unwrap(); if n == 1 { println!("1"); } else { let mut answer = vec![]; for i in 0..n { answer.extend([char::from_digit(i, 10).unwrap()].repeat(n as usize)); } answer.reverse(); let answer: String = answer.iter().collect(); println!("{}", answer); } }