fn main() { let mut buf = String::new(); let _ = std::io::stdin().read_line(&mut buf); let n: usize = buf.parse().unwrap(); let mut twos = vec![1u64; n+1]; for i in 1..n+1 { twos[i] = twos[i-1] * 2; } let mut fives = vec![1u64; n+1]; for i in 1..n+1 { fives[i] = fives[i-1] * 5; } 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); } }