r,d,x = map(int,input().split())
l = []

s = x
for i in range(10):
    s = s * r - d
    l.append(str(s))

ans="\n".join(l)
print(ans) r,d,x = map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split d x l = [] l [] s = x s x for i in range(10):
    s = s * r - d
    l.append(str(s)) i range(10) range 10 s = s * r - d s s * r - d s * r s r d l.append(str(s)) l.append l append str(s) str s ans="\n".join(l) ans "\n".join(l) "\n".join "\n" join l print(ans) print ans l = [] [] l ans="\n".join(l) "\n".join(l) ans s = x x s r,d,x = map(int,input().split()) map(int,input().split()) r x = map(int,input().split()) map(int,input().split()) x s = s * r - d s * r - d s d,x = map(int,input().split()) map(int,input().split()) d
r,d,x = map(int,input().split())
l = []

s = x
for i in range(10):
    s = s * r - d
    l.append(str(s))

ans="\n".join(l)
print(ans)