r,d,x=map(int,input().split());a=[0 for i in range(10)];a[0]=r*x-d;
for i in range(1,10): a[i]=r*a[i-1]-d
print('\n'.join(map(str,a))) 0 for i in range(10) for i in range(10) i range(10) range 10 for i in range(10) 0 r,d,x=map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split d x a=[0 for i in range(10)] a [0 for i in range(10)] a[0]=r*x-d a[0] a 0 r*x-d r*x r x d for i in range(1,10): a[i]=r*a[i-1]-d i range(1,10) range 1 10 print('\n'.join(map(str,a))) print '\n'.join(map(str,a)) '\n'.join '\n' join map(str,a) map str a a=[0 for i in range(10)] [0 for i in range(10)] a d,x=map(int,input().split()) map(int,input().split()) d x=map(int,input().split()) map(int,input().split()) x r,d,x=map(int,input().split()) map(int,input().split()) r
r,d,x=map(int,input().split());a=[0 for i in range(10)];a[0]=r*x-d;
for i in range(1,10): a[i]=r*a[i-1]-d
print('\n'.join(map(str,a)))