r, D, x2000 = map(int, input().split())
ans = [x2000]

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

for i in range(10):
    ans.append(ans[i] * r - D)
    print(ans[i + 1])
