fn main() { let mut n = String::new(); std::io::stdin().read_line(&mut n).ok(); let n: usize = n.trim().parse().unwrap(); let mut result: Vec = vec![]; for i in 0..=n { for j in 0..=n { result.push(2usize.pow(i as u32) * 5usize.pow(j as u32)); } } result.sort(); result.iter().for_each(|v| { println!("{}", v); }); }