r, D, x = map(int, input().split())
out = x
for y in range(10):
    out = r * out - D
    print(out) r, D, x = map(int, input().split()) r map(int, input().split()) map int input().split() ().split () input split D x out = x out x for y in range(10):
    out = r * out - D
    print(out) y range(10) range 10 out = r * out - D out r * out - D r * out r out D print(out) print out x = map(int, input().split()) map(int, input().split()) x out = x x out D, x = map(int, input().split()) map(int, input().split()) D r, D, x = map(int, input().split()) map(int, input().split()) r out = r * out - D r * out - D out
r, D, x = map(int, input().split())
out = x
for y in range(10):
    out = r * out - D
    print(out)
