use std::io::*; fn main() { let mut s = String::new(); std::io::stdin().read_to_string(&mut s).ok(); let mut itr = s.trim().split_whitespace(); let n: usize = itr.next().unwrap().parse().unwrap(); for _ in 0..n { let d: usize = itr.next().unwrap().parse().unwrap(); if d == 1 { println!("10"); } else { println!("9{}", "0".repeat(d - 1)); } } }