A,B,C = list(map(int,input().split()))
for i in range(10):
    C = C * A -B
    print(C) A,B,C = list(map(int,input().split())) A list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split B C for i in range(10):
    C = C * A -B
    print(C) i range(10) range 10 C = C * A -B C C * A -B C * A C A B print(C) print C C = C * A -B C * A -B C A,B,C = list(map(int,input().split())) list(map(int,input().split())) A C = list(map(int,input().split())) list(map(int,input().split())) C B,C = list(map(int,input().split())) list(map(int,input().split())) B
A,B,C = list(map(int,input().split()))
for i in range(10):
    C = C * A -B
    print(C)