n=[]
r,d,x=map(int,input().split())
n.append(x)
def m(i):
  return r*i-d
for i in range(10):
  n.append(m(n[i]))
  print(n[-1]) n=[] n [] r,d,x=map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split d x n.append(x) n.append n append x def m(i):
  return r*i-d m return r*i-d r*i-d r*i r i d i i for i in range(10):
  n.append(m(n[i]))
  print(n[-1]) i range(10) range 10 n.append(m(n[i])) n.append n append m(n[i]) m n[i] n i print(n[-1]) print n[-1] n -1 r,d,x=map(int,input().split()) map(int,input().split()) r n=[] [] n x=map(int,input().split()) map(int,input().split()) x d,x=map(int,input().split()) map(int,input().split()) d def m(i):
  return r*i-d def m(i):
  return r*i-d m
n=[]
r,d,x=map(int,input().split())
n.append(x)
def m(i):
  return r*i-d
for i in range(10):
  n.append(m(n[i]))
  print(n[-1])