r, d, x2000 = map(int, input().split())
ans = [0] * 10

ans[0] = r * x2000 - d
print(ans[0])

for i in range(1, 10):
    ans[i] = r * ans[i - 1] - d
    print(ans[i]) r, d, x2000 = map(int, input().split()) r map(int, input().split()) map int input().split() ().split () input split d x2000 ans = [0] * 10 ans [0] * 10 [0] 0 10 ans[0] = r * x2000 - d ans[0] ans 0 r * x2000 - d r * x2000 r x2000 d print(ans[0]) print ans[0] ans 0 for i in range(1, 10):
    ans[i] = r * ans[i - 1] - d
    print(ans[i]) i range(1, 10) range 1 10 ans[i] = r * ans[i - 1] - d ans[i] ans i r * ans[i - 1] - d r * ans[i - 1] r ans[i - 1] ans i - 1 i 1 d print(ans[i]) print ans[i] ans i d, x2000 = map(int, input().split()) map(int, input().split()) d ans = [0] * 10 [0] * 10 ans x2000 = map(int, input().split()) map(int, input().split()) x2000 r, d, x2000 = map(int, input().split()) map(int, input().split()) r
r, d, x2000 = map(int, input().split())
ans = [0] * 10

ans[0] = r * x2000 - d
print(ans[0])

for i in range(1, 10):
    ans[i] = r * ans[i - 1] - d
    print(ans[i])