a,b,c = map(int,input().split())
#print(a*c-b)
for i in range(10):
    c = a*c-b
    print(c) a,b,c = map(int,input().split()) a map(int,input().split()) map int input().split() ().split () input split b c for i in range(10):
    c = a*c-b
    print(c) i range(10) range 10 c = a*c-b c a*c-b a*c a c b print(c) print c a,b,c = map(int,input().split()) map(int,input().split()) a b,c = map(int,input().split()) map(int,input().split()) b c = map(int,input().split()) map(int,input().split()) c c = a*c-b a*c-b c
a,b,c = map(int,input().split())
#print(a*c-b)
for i in range(10):
    c = a*c-b
    print(c)