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