n,a,b=map(int,input().split()) for i in range(n):print(a*b**i)