#!/usr/bin/env python3

# -*- coding: utf-8 -*-



r, D, x = list(map(int, input().split()))



for _ in range(10):

    x = r * x - D

    print(x)

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



for i in range(10):

    x = r * x - d

    print(x)



#!/usr/bin/env python3
# -*- coding: utf-8 -*-
r, D, x = list(map(int, input().split()))
for _ in range(10):
    x = r * x - D
    print(x)

r, d, x = list(map(int, input().strip().split()))
for i in range(10):
    x = r * x - d
    print(x)

-#!/usr/bin/env python3 -# -*- coding: utf-8 -*- -r, D, x = list(map(int, input().split())) -for _ in range(10): -    x = r * x - D +r, d, x = list(map(int, input().strip().split())) +for i in range(10): +    x = r * x - d