main = do
  [r,d,x] <- map read . words <$> getLine
  putStrLn $ unlines $ map show (f r d x [])
f :: Int -> Int -> Int -> [Int] -> [Int]
f a b y ans
  | length ans < 10 = f a b (y*a-b) (ans ++ [y*a-b])
  | otherwise = ans
