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