r, D, x = map(int, input().split())

ans = [None]*11
ans[0] = x

for i in range(1, 11):
    ans[i] = ans[i-1] * r - D
    print(ans[i]) r, D, x = map(int, input().split()) r map(int, input().split()) map int input().split() ().split () input split D x ans = [None]*11 ans [None]*11 [None] None 11 ans[0] = x ans[0] ans 0 x for i in range(1, 11):
    ans[i] = ans[i-1] * r - D
    print(ans[i]) i range(1, 11) range 1 11 ans[i] = ans[i-1] * r - D ans[i] ans i ans[i-1] * r - D ans[i-1] * r ans[i-1] ans i-1 i 1 r D print(ans[i]) print ans[i] ans i x = map(int, input().split()) map(int, input().split()) x ans = [None]*11 [None]*11 ans r, D, x = map(int, input().split()) map(int, input().split()) r D, x = map(int, input().split()) map(int, input().split()) D
r, D, x = map(int, input().split())

ans = [None]*11
ans[0] = x

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