r, d , x = map(int, input().split())
cnt = 0
print(r * x - d)
while cnt <= 8:
    x = r * x - d
    print(r * x - d)
    cnt += 1 r, d , x = map(int, input().split()) r map(int, input().split()) map int input().split() ().split () input split d x cnt = 0 cnt 0 print(r * x - d) print r * x - d r * x r x d while cnt <= 8:
    x = r * x - d
    print(r * x - d)
    cnt += 1 cnt <= 8 cnt 8 x = r * x - d x r * x - d r * x r x d print(r * x - d) print r * x - d r * x r x d cnt += 1 cnt 1 cnt += 1 1 cnt x = r * x - d r * x - d x cnt = 0 0 cnt d , x = map(int, input().split()) map(int, input().split()) d x = map(int, input().split()) map(int, input().split()) x r, d , x = map(int, input().split()) map(int, input().split()) r
r, d , x = map(int, input().split())
cnt = 0
print(r * x - d)
while cnt <= 8:
    x = r * x - d
    print(r * x - d)
    cnt += 1