main = do
  li <- getLine
  let [r,d,x2000] = map read $ words li
  let answer = compute r d x2000
  sequence_ $ map print answer

compute :: Int -> Int -> Int -> [Int]
compute r d x2000 = take 10 $ tail $ iterate f x2000
  where
    f xi = r * xi - d