fn main() { proconio::input! { t: usize, } for _ in 0..t { proconio::input! { n: u64, } let mut f: u64 = 1; while f < n + 1 { f *= 10; } let m = f - (n + 1); // 2 + 7 | 27 // 10 + 89 | 1089 println!("{}", m); } }