r, d, x2000 = list(map(int, input().split()))
# x = list(map(int, input().split()))
# abc = [int(input()) for i in range(5)]
# n = int(input())
# n, m = list(map(int, input().split()))
x = [x2000]
for i in range(10):
    b = r*x[i]-d
    x.append(b)
    print(b) r, d, x2000 = list(map(int, input().split())) r list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split d x2000 x = [x2000] x [x2000] x2000 for i in range(10):
    b = r*x[i]-d
    x.append(b)
    print(b) i range(10) range 10 b = r*x[i]-d b r*x[i]-d r*x[i] r x[i] x i d x.append(b) x.append x append b print(b) print b x = [x2000] [x2000] x b = r*x[i]-d r*x[i]-d b d, x2000 = list(map(int, input().split())) list(map(int, input().split())) d x2000 = list(map(int, input().split())) list(map(int, input().split())) x2000 r, d, x2000 = list(map(int, input().split())) list(map(int, input().split())) r
r, d, x2000 = list(map(int, input().split()))
# x = list(map(int, input().split()))
# abc = [int(input()) for i in range(5)]
# n = int(input())
# n, m = list(map(int, input().split()))
x = [x2000]
for i in range(10):
    b = r*x[i]-d
    x.append(b)
    print(b)
