r,d,x = map(int,raw_input().split())
xi = x
nxi = 0
for i in range(10):
    nxi = xi*r -d
    print nxi
    xi = nxi r,d,x = map(int,raw_input().split()) r map(int,raw_input().split()) map int raw_input().split() ().split () raw_input split d x xi = x xi x nxi = 0 nxi 0 for i in range(10):
    nxi = xi*r -d
    print nxi
    xi = nxi i range(10) range 10 nxi = xi*r -d nxi xi*r -d xi*r xi r d print xi = nxi xi nxi xi = x x xi r,d,x = map(int,raw_input().split()) map(int,raw_input().split()) r nxi = 0 0 nxi nxi = xi*r -d xi*r -d nxi d,x = map(int,raw_input().split()) map(int,raw_input().split()) d xi = nxi nxi xi x = map(int,raw_input().split()) map(int,raw_input().split()) x
r,d,x = map(int,raw_input().split())
xi = x
nxi = 0
for i in range(10):
    nxi = xi*r -d
    print nxi
    xi = nxi