fn main() { let mut s = String::new(); std::io::stdin().read_line(&mut s).unwrap(); let n: usize = s.trim().parse().unwrap(); for i in 0..n { for _ in 0..n { print!("{}", (i + 1) % 10); } } println!(); }