def main():

    r,d,x = tuple([int(t)for t in input().split()])

    xs = [x]
    for i in range(10):
        xs.append(xs[i]*r-d)

    for a in xs[1:]:
        print(a)

if __name__ == "__main__":
    main() def main():

    r,d,x = tuple([int(t)for t in input().split()])

    xs = [x]
    for i in range(10):
        xs.append(xs[i]*r-d)

    for a in xs[1:]:
        print(a) main int(t)for t in input().split() for t in input().split() t input().split() ().split () input split for t in input().split() int(t) int t r,d,x = tuple([int(t)for t in input().split()]) r tuple([int(t)for t in input().split()]) tuple [int(t)for t in input().split()] d x xs = [x] xs [x] x for i in range(10):
        xs.append(xs[i]*r-d)

     i range(10) range 10 xs.append(xs[i]*r-d) xs.append xs append xs[i]*r-d xs[i]*r xs[i] xs i r d for a in xs[1:]:
        print(a) a xs[1:] xs 1: 1 print(a) print a if __name__ == "__main__":
    main() __name__ == "__main__" __name__ "__main__" main() main def main():

    r,d,x = tuple([int(t)for t in input().split()])

    xs = [x]
    for i in range(10):
        xs.append(xs[i]*r-d)

    for a in xs[1:]:
        print(a) def main():

    r,d,x = tuple([int(t)for t in input().split()])

    xs = [x]
    for i in range(10):
        xs.append(xs[i]*r-d)

    for a in xs[1:]:
        print(a) main
def main():

    r,d,x = tuple([int(t)for t in input().split()])

    xs = [x]
    for i in range(10):
        xs.append(xs[i]*r-d)

    for a in xs[1:]:
        print(a)

if __name__ == "__main__":
    main()