from sys import stdin
def LI(): return list(map(int,stdin.readline().rstrip().split()))

tmp = LI()
r,d,x = [tmp.pop(0) for _ in range(3)]

for i in range(1,11):
    x = r*x-d
    print(x) from sys import stdin def LI(): return list(map(int,stdin.readline().rstrip().split())) LI tmp = LI() tmp LI() LI tmp.pop(0) for _ in range(3) for _ in range(3) _ range(3) range 3 for _ in range(3) tmp.pop(0) tmp.pop tmp pop 0 r,d,x = [tmp.pop(0) for _ in range(3)] r [tmp.pop(0) for _ in range(3)] d x for i in range(1,11):
    x = r*x-d
    print(x) i range(1,11) range 1 11 x = r*x-d x r*x-d r*x r x d print(x) print x x = r*x-d r*x-d x x = [tmp.pop(0) for _ in range(3)] [tmp.pop(0) for _ in range(3)] x def LI(): return list(map(int,stdin.readline().rstrip().split())) def LI(): return list(map(int,stdin.readline().rstrip().split())) LI tmp = LI() LI() tmp d,x = [tmp.pop(0) for _ in range(3)] [tmp.pop(0) for _ in range(3)] d r,d,x = [tmp.pop(0) for _ in range(3)] [tmp.pop(0) for _ in range(3)] r
from sys import stdin
def LI(): return list(map(int,stdin.readline().rstrip().split()))

tmp = LI()
r,d,x = [tmp.pop(0) for _ in range(3)]

for i in range(1,11):
    x = r*x-d
    print(x)