#![allow(non_snake_case, unused_imports)] use proconio::{input, marker::Usize1, marker::Chars}; use itertools::Itertools; #[allow(unused_macros)] macro_rules! d { ( $( $x:expr ),* $(,)? ) => { eprintln!( concat!( $( stringify!($x), "={:?} " ),* ), $( $x ),* ); }; } fn main() { input! { N: usize, A: usize, B: usize, } for i in 0..N { let x = A * B.pow(i as u32); println!("{}", x); } }