import sys input = sys.stdin.readline N,A,B=list(map(int,input().split())) for i in range(N): ANS=A*(B**i) print(ANS)