r, d, x = (int(i) for i in input().split())
ans = x
for i in range(0, 10):
    ans = r * ans - d
    print(ans) int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i r, d, x = (int(i) for i in input().split()) r (int(i) for i in input().split()) d x ans = x ans x for i in range(0, 10):
    ans = r * ans - d
    print(ans) i range(0, 10) range 0 10 ans = r * ans - d ans r * ans - d r * ans r ans d print(ans) print ans r, d, x = (int(i) for i in input().split()) (int(i) for i in input().split()) r ans = r * ans - d r * ans - d ans x = (int(i) for i in input().split()) (int(i) for i in input().split()) x ans = x x ans d, x = (int(i) for i in input().split()) (int(i) for i in input().split()) d
r, d, x = (int(i) for i in input().split())
ans = x
for i in range(0, 10):
    ans = r * ans - d
    print(ans)