r,d,x = map(int, input().split())

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

a = [0]*10
a[0] = r*x-d
print(a[0])
for i in range(1, 10):
  s = r*a[i-1] -d
  a[i] = s
  print(s)