fn main() { let mut n = String::new(); std::io::stdin().read_line(&mut n).ok(); let n: u32 = n.trim().parse().unwrap(); let mut factors: Vec = (0..=n) .flat_map(|i| { (0..=n) .map(|j| 2u64.pow(i) * 5u64.pow(j)) .collect::>() }) .collect(); factors.sort_unstable(); for f in factors { println!("{}", f); } }