r,d,x=[int(x) for x in input().rstrip().split()]
ans=r*x-d
print(ans)
for i in range(9):
    ans=r*ans-d
    print(ans)

 int(x) for x in input().rstrip().split() for x in input().rstrip().split() x input().rstrip().split() ().rstrip().split ().rstrip() ().rstrip () input rstrip split for x in input().rstrip().split() int(x) int x r,d,x=[int(x) for x in input().rstrip().split()] r [int(x) for x in input().rstrip().split()] d x ans=r*x-d ans r*x-d r*x r x d print(ans) print ans for i in range(9):
    ans=r*ans-d
    print(ans) i range(9) range 9 ans=r*ans-d ans r*ans-d r*ans r ans d print(ans) print ans r,d,x=[int(x) for x in input().rstrip().split()] [int(x) for x in input().rstrip().split()] r x=[int(x) for x in input().rstrip().split()] [int(x) for x in input().rstrip().split()] x ans=r*x-d r*x-d ans ans=r*ans-d r*ans-d ans d,x=[int(x) for x in input().rstrip().split()] [int(x) for x in input().rstrip().split()] d
r,d,x=[int(x) for x in input().rstrip().split()]
ans=r*x-d
print(ans)
for i in range(9):
    ans=r*ans-d
    print(ans)


