r,d,x_2000=map(int,input().split())
x=[x_2000]
for i in range(10):
    temp=r*x[i]-d
    x.append(temp)
    print(temp) r,d,x_2000=map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split d x_2000 x=[x_2000] x [x_2000] x_2000 for i in range(10):
    temp=r*x[i]-d
    x.append(temp)
    print(temp) i range(10) range 10 temp=r*x[i]-d temp r*x[i]-d r*x[i] r x[i] x i d x.append(temp) x.append x append temp print(temp) print temp x=[x_2000] [x_2000] x temp=r*x[i]-d r*x[i]-d temp x_2000=map(int,input().split()) map(int,input().split()) x_2000 d,x_2000=map(int,input().split()) map(int,input().split()) d r,d,x_2000=map(int,input().split()) map(int,input().split()) r
r,d,x_2000=map(int,input().split())
x=[x_2000]
for i in range(10):
    temp=r*x[i]-d
    x.append(temp)
    print(temp)