r,D,xs = map(int,input().split())
for i in range(1,11):
    xs = r*xs - D
    print(xs) r,D,xs = map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split D xs for i in range(1,11):
    xs = r*xs - D
    print(xs) i range(1,11) range 1 11 xs = r*xs - D xs r*xs - D r*xs r xs D print(xs) print xs r,D,xs = map(int,input().split()) map(int,input().split()) r xs = map(int,input().split()) map(int,input().split()) xs D,xs = map(int,input().split()) map(int,input().split()) D xs = r*xs - D r*xs - D xs
r,D,xs = map(int,input().split())
for i in range(1,11):
    xs = r*xs - D
    print(xs)