n,m,k = map(int, input().split())
for i in range(10):
    k = n*k-m
    print(k) n,m,k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split m k for i in range(10):
    k = n*k-m
    print(k) i range(10) range 10 k = n*k-m k n*k-m n*k n k m print(k) print k n,m,k = map(int, input().split()) map(int, input().split()) n k = map(int, input().split()) map(int, input().split()) k k = n*k-m n*k-m k m,k = map(int, input().split()) map(int, input().split()) m
n,m,k = map(int, input().split())
for i in range(10):
    k = n*k-m
    print(k)