r, D, x = map(int, input().split())
A = [r*x-D]
print(A[0])
for i in range(9):
    print(r*A[i]-D)
    A.append(r*A[i]-D) r, D, x = map(int, input().split()) r map(int, input().split()) map int input().split() ().split () input split D x A = [r*x-D] A [r*x-D] r*x-D r*x r x D print(A[0]) print A[0] A 0 for i in range(9):
    print(r*A[i]-D)
    A.append(r*A[i]-D) i range(9) range 9 print(r*A[i]-D) print r*A[i]-D r*A[i] r A[i] A i D A.append(r*A[i]-D) A.append A append r*A[i]-D r*A[i] r A[i] A i D r, D, x = map(int, input().split()) map(int, input().split()) r A = [r*x-D] [r*x-D] A x = map(int, input().split()) map(int, input().split()) x D, x = map(int, input().split()) map(int, input().split()) D
r, D, x = map(int, input().split())
A = [r*x-D]
print(A[0])
for i in range(9):
    print(r*A[i]-D)
    A.append(r*A[i]-D)