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