use proconio::input; fn main() { input! { n: u32, a: u32, b: u32 } (0..n).for_each(|x| println!("{}", a * b.pow(x))); }