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

def algae(r, D, x):
    return r*x -D

l = [s]
for i in range(1,11):
    xi = algae(r, D, l[i-1])
    l.append(xi)
    print(xi) r, D, s = map(int, input().split()) r map(int, input().split()) map int input().split() ().split () input split D s def algae(r, D, x):
    return r*x -D algae return r*x -D r*x -D r*x r x D r r D D x x l = [s] l [s] s for i in range(1,11):
    xi = algae(r, D, l[i-1])
    l.append(xi)
    print(xi) i range(1,11) range 1 11 xi = algae(r, D, l[i-1]) xi algae(r, D, l[i-1]) algae r D l[i-1] l i-1 i 1 l.append(xi) l.append l append xi print(xi) print xi def algae(r, D, x):
    return r*x -D def algae(r, D, x):
    return r*x -D algae xi = algae(r, D, l[i-1]) algae(r, D, l[i-1]) xi D, s = map(int, input().split()) map(int, input().split()) D l = [s] [s] l r, D, s = map(int, input().split()) map(int, input().split()) r s = map(int, input().split()) map(int, input().split()) s
r, D, s = map(int, input().split())

def algae(r, D, x):
    return r*x -D

l = [s]
for i in range(1,11):
    xi = algae(r, D, l[i-1])
    l.append(xi)
    print(xi)