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