r,d,x = map(int,input().split())
[print(int(r**i*(x+d/(1-r))-d/(1-r))) for i in range(1,11)] r,d,x = map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split d x print(int(r**i*(x+d/(1-r))-d/(1-r))) for i in range(1,11) for i in range(1,11) i range(1,11) range 1 11 for i in range(1,11) print(int(r**i*(x+d/(1-r))-d/(1-r))) print int(r**i*(x+d/(1-r))-d/(1-r)) int r**i*(x+d/(1-r))-d/(1-r) r**i*(x+d/(1-r)) r**i r i x+d/(1-r) x d/(1-r) d 1-r 1 r d/(1-r) d 1-r 1 r [print(int(r**i*(x+d/(1-r))-d/(1-r))) for i in range(1,11)] d,x = map(int,input().split()) map(int,input().split()) d r,d,x = map(int,input().split()) map(int,input().split()) r x = map(int,input().split()) map(int,input().split()) x
r,d,x = map(int,input().split())
[print(int(r**i*(x+d/(1-r))-d/(1-r))) for i in range(1,11)]