input = gets
r = input.split(" ")[0].to_i
D = input.split(" ")[1].to_i
x2000 = input.split(" ")[2].to_i

if r > 5 || r < 2
  exit
end

if D > 100 || r < 1
  exit
end

if x2000 > 2000 || x2000 <= D
  exit
end

x = x2000
i = 0
while i<10 do
  x = r * x - D
  print "#{x}\n"
  i = i + 1
end