r , d , x= map(int, input().split())
L = r*x-d
B = r * x -d
M = 0
N = 0
for i in range(10):
    V = r*x-d
    N == V
    print(V)
    x = V r , d , x= map(int, input().split()) r map(int, input().split()) map int input().split() ().split () input split d x L = r*x-d L r*x-d r*x r x d B = r * x -d B r * x -d r * x r x d M = 0 M 0 N = 0 N 0 for i in range(10):
    V = r*x-d
    N == V
    print(V)
    x = V i range(10) range 10 V = r*x-d V r*x-d r*x r x d N == V N V print(V) print V x = V x V r , d , x= map(int, input().split()) map(int, input().split()) r M = 0 0 M B = r * x -d r * x -d B x= map(int, input().split()) map(int, input().split()) x x = V V x L = r*x-d r*x-d L N = 0 0 N d , x= map(int, input().split()) map(int, input().split()) d V = r*x-d r*x-d V
r , d , x= map(int, input().split())
L = r*x-d
B = r * x -d
M = 0
N = 0
for i in range(10):
    V = r*x-d
    N == V
    print(V)
    x = V