r, d, x0 = map(int,input().split())

def mo(i):
    if i == 0:
        return x0
    return r*mo(i-1) - d 

for i in range(1,11):
    print(mo(i)) r, d, x0 = map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split d x0 def mo(i):
    if i == 0:
        return x0
    return r*mo(i-1) - d  mo if i == 0:
        return x0
     i == 0 i 0 return x0 x0 return r*mo(i-1) - d r*mo(i-1) - d r*mo(i-1) r mo(i-1) mo i-1 i 1 d i i for i in range(1,11):
    print(mo(i)) i range(1,11) range 1 11 print(mo(i)) print mo(i) mo i d, x0 = map(int,input().split()) map(int,input().split()) d def mo(i):
    if i == 0:
        return x0
    return r*mo(i-1) - d  def mo(i):
    if i == 0:
        return x0
    return r*mo(i-1) - d  mo x0 = map(int,input().split()) map(int,input().split()) x0 r, d, x0 = map(int,input().split()) map(int,input().split()) r
r, d, x0 = map(int,input().split())

def mo(i):
    if i == 0:
        return x0
    return r*mo(i-1) - d 

for i in range(1,11):
    print(mo(i))
