r, d, x = map(int, input().split())
print(r*x-d)
for _ in range(9):
    x = r*x-d
    print(r*x-d)
     r, d, x = map(int, input().split()) r map(int, input().split()) map int input().split() ().split () input split d x print(r*x-d) print r*x-d r*x r x d for _ in range(9):
    x = r*x-d
    print(r*x-d)
     _ range(9) range 9 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 x = r*x-d r*x-d x 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())
print(r*x-d)
for _ in range(9):
    x = r*x-d
    print(r*x-d)
    
