r,D,x_2000=map(int,input().split())
glass=[x_2000]
for i in range(1,11):
    glass+=[r*glass[i-1]-D]
    print(glass[i]) r,D,x_2000=map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split D x_2000 glass=[x_2000] glass [x_2000] x_2000 for i in range(1,11):
    glass+=[r*glass[i-1]-D]
    print(glass[i]) i range(1,11) range 1 11 glass+=[r*glass[i-1]-D] glass [r*glass[i-1]-D] r*glass[i-1]-D r*glass[i-1] r glass[i-1] glass i-1 i 1 D print(glass[i]) print glass[i] glass i x_2000=map(int,input().split()) map(int,input().split()) x_2000 D,x_2000=map(int,input().split()) map(int,input().split()) D glass=[x_2000] [x_2000] glass r,D,x_2000=map(int,input().split()) map(int,input().split()) r glass+=[r*glass[i-1]-D] [r*glass[i-1]-D] glass
r,D,x_2000=map(int,input().split())
glass=[x_2000]
for i in range(1,11):
    glass+=[r*glass[i-1]-D]
    print(glass[i])