# abc127_b.py
def rec(Xi,cnt):
    if cnt>=10:
        return

    Xnext = r*Xi-D
    print(Xnext)
    rec(Xnext,cnt+1)

r,D,x = map(int,input().split())
rec(x,0) def rec(Xi,cnt):
    if cnt>=10:
        return

    Xnext = r*Xi-D
    print(Xnext)
    rec(Xnext,cnt+1) rec if cnt>=10:
        return

     cnt>=10 cnt 10 return Xnext = r*Xi-D Xnext r*Xi-D r*Xi r Xi D print(Xnext) print Xnext rec(Xnext,cnt+1) rec Xnext cnt+1 cnt 1 Xi Xi cnt cnt r,D,x = map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split D x rec(x,0) rec x 0 D,x = map(int,input().split()) map(int,input().split()) D x = map(int,input().split()) map(int,input().split()) x def rec(Xi,cnt):
    if cnt>=10:
        return

    Xnext = r*Xi-D
    print(Xnext)
    rec(Xnext,cnt+1) def rec(Xi,cnt):
    if cnt>=10:
        return

    Xnext = r*Xi-D
    print(Xnext)
    rec(Xnext,cnt+1) rec r,D,x = map(int,input().split()) map(int,input().split()) r
# abc127_b.py
def rec(Xi,cnt):
    if cnt>=10:
        return

    Xnext = r*Xi-D
    print(Xnext)
    rec(Xnext,cnt+1)

r,D,x = map(int,input().split())
rec(x,0)
