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

lst = [x2000]

x = 0
for i in range(10):
    x = r*lst[i] - D
    lst.append(x)
    print(x) r, D, x2000 = map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split D x2000 lst = [x2000] lst [x2000] x2000 x = 0 x 0 for i in range(10):
    x = r*lst[i] - D
    lst.append(x)
    print(x) i range(10) range 10 x = r*lst[i] - D x r*lst[i] - D r*lst[i] r lst[i] lst i D lst.append(x) lst.append lst append x print(x) print x D, x2000 = map(int,input().split()) map(int,input().split()) D x = 0 0 x x2000 = map(int,input().split()) map(int,input().split()) x2000 r, D, x2000 = map(int,input().split()) map(int,input().split()) r lst = [x2000] [x2000] lst x = r*lst[i] - D r*lst[i] - D x
r, D, x2000 = map(int,input().split())

lst = [x2000]

x = 0
for i in range(10):
    x = r*lst[i] - D
    lst.append(x)
    print(x)
