rate, D, x_2000 = map(int, input().split())
current_x = x_2000

for i in range(10):
    next_x = rate * current_x - D
    print(next_x)
    current_x = next_x rate, D, x_2000 = map(int, input().split()) rate map(int, input().split()) map int input().split() ().split () input split D x_2000 current_x = x_2000 current_x x_2000 for i in range(10):
    next_x = rate * current_x - D
    print(next_x)
    current_x = next_x i range(10) range 10 next_x = rate * current_x - D next_x rate * current_x - D rate * current_x rate current_x D print(next_x) print next_x current_x = next_x current_x next_x current_x = next_x next_x current_x D, x_2000 = map(int, input().split()) map(int, input().split()) D rate, D, x_2000 = map(int, input().split()) map(int, input().split()) rate current_x = x_2000 x_2000 current_x next_x = rate * current_x - D rate * current_x - D next_x x_2000 = map(int, input().split()) map(int, input().split()) x_2000
rate, D, x_2000 = map(int, input().split())
current_x = x_2000

for i in range(10):
    next_x = rate * current_x - D
    print(next_x)
    current_x = next_x
