r, D, x = map(int, input().split())
for i in range(1,11):
    print(round(r**i * (x+D/(1-r)) - D/(1-r))) r, D, x = map(int, input().split()) r map(int, input().split()) map int input().split() ().split () input split D x for i in range(1,11):
    print(round(r**i * (x+D/(1-r)) - D/(1-r))) i range(1,11) range 1 11 print(round(r**i * (x+D/(1-r)) - D/(1-r))) print round(r**i * (x+D/(1-r)) - D/(1-r)) round r**i * (x+D/(1-r)) - D/(1-r) r**i * (x+D/(1-r)) r**i r i x+D/(1-r) x D/(1-r) D 1-r 1 r D/(1-r) D 1-r 1 r D, x = map(int, input().split()) map(int, input().split()) D x = map(int, input().split()) map(int, input().split()) x r, D, x = map(int, input().split()) map(int, input().split()) r
r, D, x = map(int, input().split())
for i in range(1,11):
    print(round(r**i * (x+D/(1-r)) - D/(1-r)))