r,d,x = [i for i in list(map(int,input().split()))]
for i in range(1,11):
  x = r*x-d
  print(x) i for i in list(map(int,input().split())) for i in list(map(int,input().split())) i list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split for i in list(map(int,input().split())) i r,d,x = [i for i in list(map(int,input().split()))] r [i for i in list(map(int,input().split()))] d x for i in range(1,11):
  x = r*x-d
  print(x) i range(1,11) range 1 11 x = r*x-d x r*x-d r*x r x d print(x) print x d,x = [i for i in list(map(int,input().split()))] [i for i in list(map(int,input().split()))] d r,d,x = [i for i in list(map(int,input().split()))] [i for i in list(map(int,input().split()))] r x = [i for i in list(map(int,input().split()))] [i for i in list(map(int,input().split()))] x x = r*x-d r*x-d x
r,d,x = [i for i in list(map(int,input().split()))]
for i in range(1,11):
  x = r*x-d
  print(x)