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