use proconio::input; fn main() { input! { n: usize, a: usize, b: usize, } for num in 0..n { println!("{}", a * b.pow(num as u32)); } }