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

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

for i in range(10):
    ans = r*tem - d
    tem = ans
    print(ans)