r,d,a=map(int,input().split())
for i in range(1,11):
    print(int(a*(r**i)-d*(r**i-1)/(r-1))) r,d,a=map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split d a for i in range(1,11):
    print(int(a*(r**i)-d*(r**i-1)/(r-1))) i range(1,11) range 1 11 print(int(a*(r**i)-d*(r**i-1)/(r-1))) print int(a*(r**i)-d*(r**i-1)/(r-1)) int a*(r**i)-d*(r**i-1)/(r-1) a*(r**i) a r**i r i d*(r**i-1)/(r-1) d*(r**i-1) d r**i-1 r**i r i 1 r-1 r 1 r,d,a=map(int,input().split()) map(int,input().split()) r d,a=map(int,input().split()) map(int,input().split()) d a=map(int,input().split()) map(int,input().split()) a
r,d,a=map(int,input().split())
for i in range(1,11):
    print(int(a*(r**i)-d*(r**i-1)/(r-1)))