a = input().split()
r = int(a[0])
D = int(a[1])
x = int(a[2])
for i in range(10):
    if i == 0:
        xx = r * x - D
    else:
        xx = r * xx -D
    print(xx) a = input().split() a input().split() ().split () input split r = int(a[0]) r int(a[0]) int a[0] a 0 D = int(a[1]) D int(a[1]) int a[1] a 1 x = int(a[2]) x int(a[2]) int a[2] a 2 for i in range(10):
    if i == 0:
        xx = r * x - D
    else:
        xx = r * xx -D
    print(xx) i range(10) range 10 if i == 0:
        xx = r * x - D
    else:
        xx = r * xx -D
     i == 0 i 0 xx = r * x - D xx r * x - D r * x r x D xx = r * xx -D xx r * xx -D r * xx r xx D print(xx) print xx xx = r * xx -D r * xx -D xx xx = r * x - D r * x - D xx D = int(a[1]) int(a[1]) D a = input().split() input().split() a x = int(a[2]) int(a[2]) x r = int(a[0]) int(a[0]) r
a = input().split()
r = int(a[0])
D = int(a[1])
x = int(a[2])
for i in range(10):
    if i == 0:
        xx = r * x - D
    else:
        xx = r * xx -D
    print(xx)
