r,D,x2000=map(int,input().split())
a=[]
for i in range(10):
    x2000=r*x2000-D
    a.append(x2000)
    print(x2000) r,D,x2000=map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split D x2000 a=[] a [] for i in range(10):
    x2000=r*x2000-D
    a.append(x2000)
    print(x2000) i range(10) range 10 x2000=r*x2000-D x2000 r*x2000-D r*x2000 r x2000 D a.append(x2000) a.append a append x2000 print(x2000) print x2000 x2000=r*x2000-D r*x2000-D x2000 x2000=map(int,input().split()) map(int,input().split()) x2000 D,x2000=map(int,input().split()) map(int,input().split()) D a=[] [] a r,D,x2000=map(int,input().split()) map(int,input().split()) r
r,D,x2000=map(int,input().split())
a=[]
for i in range(10):
    x2000=r*x2000-D
    a.append(x2000)
    print(x2000)