fn main() { let mut buf = String::new(); if let Err(_) = std::io::stdin().read_line(&mut buf) { println!("ha?"); return; } let n: usize = if let Ok(n) = buf.parse() { n } else { println!("1"); return; }; let mut twos = vec![1i64; n+1]; for i in 0..n { twos[i+1] = twos[i] * 2i64; } let mut fives = vec![1i64; n+1]; for i in 0..n { fives[i+1] = fives[i] * 5i64; } let mut ans = vec![]; for &t in twos.iter() { for &f in fives.iter() { ans.push(t * f); } } ans.sort(); for &a in ans.iter() { println!("{}", a); } }