r,D,initial=map(int,input().split())

ans=[0 for i  in range(10)]
ans[0]=initial*r-D


for i in range(1,10):
    ans[i]=ans[i-1]*r-D

for anss in ans:
    print(anss)
 r,D,initial=map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split D initial 0 for i  in range(10) for i  in range(10) i range(10) range 10 for i  in range(10) 0 ans=[0 for i  in range(10)] ans [0 for i  in range(10)] ans[0]=initial*r-D ans[0] ans 0 initial*r-D initial*r initial r D for i in range(1,10):
    ans[i]=ans[i-1]*r-D i range(1,10) range 1 10 ans[i]=ans[i-1]*r-D ans[i] ans i ans[i-1]*r-D ans[i-1]*r ans[i-1] ans i-1 i 1 r D for anss in ans:
    print(anss) anss ans print(anss) print anss D,initial=map(int,input().split()) map(int,input().split()) D initial=map(int,input().split()) map(int,input().split()) initial ans=[0 for i  in range(10)] [0 for i  in range(10)] ans r,D,initial=map(int,input().split()) map(int,input().split()) r
r,D,initial=map(int,input().split())

ans=[0 for i  in range(10)]
ans[0]=initial*r-D


for i in range(1,10):
    ans[i]=ans[i-1]*r-D

for anss in ans:
    print(anss)

