def mass(r, D, x):
    return r*x - D


r, D, x = map(int, input().split())
for _ in range(10):
    x = mass(r, D, x)
    print(x) def mass(r, D, x):
    return r*x - D mass return r*x - D r*x - D r*x r x D r r D D x x r, D, x = map(int, input().split()) r map(int, input().split()) map int input().split() ().split () input split D x for _ in range(10):
    x = mass(r, D, x)
    print(x) _ range(10) range 10 x = mass(r, D, x) x mass(r, D, x) mass r D x print(x) print x r, D, x = map(int, input().split()) map(int, input().split()) r x = map(int, input().split()) map(int, input().split()) x D, x = map(int, input().split()) map(int, input().split()) D def mass(r, D, x):
    return r*x - D def mass(r, D, x):
    return r*x - D mass x = mass(r, D, x) mass(r, D, x) x
def mass(r, D, x):
    return r*x - D


r, D, x = map(int, input().split())
for _ in range(10):
    x = mass(r, D, x)
    print(x)