# coding: utf-8
# Your code here!
r,D,x2000 = map(int,input().split())

x_cur = x2000
for i in range(2001,2011):
    x_cur = r*x_cur-D
    print(x_cur) r,D,x2000 = map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split D x2000 x_cur = x2000 x_cur x2000 for i in range(2001,2011):
    x_cur = r*x_cur-D
    print(x_cur) i range(2001,2011) range 2001 2011 x_cur = r*x_cur-D x_cur r*x_cur-D r*x_cur r x_cur D print(x_cur) print x_cur x_cur = x2000 x2000 x_cur r,D,x2000 = map(int,input().split()) map(int,input().split()) r x_cur = r*x_cur-D r*x_cur-D x_cur x2000 = map(int,input().split()) map(int,input().split()) x2000 D,x2000 = map(int,input().split()) map(int,input().split()) D
# coding: utf-8
# Your code here!
r,D,x2000 = map(int,input().split())

x_cur = x2000
for i in range(2001,2011):
    x_cur = r*x_cur-D
    print(x_cur)