#k = int(input())
#s = input()
#a, b = map(int, input().split())
#s, t = map(str, input().split())
#l = list(map(int, input().split()))
#l = [list(map(int,input().split())) for i in range(n)]

r,D,x2000 = map(int, input().split())

x = x2000
for i in range(10):
    ans = r*x - D
    print(ans)
    x = ans r,D,x2000 = map(int, input().split()) r map(int, input().split()) map int input().split() ().split () input split D x2000 x = x2000 x x2000 for i in range(10):
    ans = r*x - D
    print(ans)
    x = ans i range(10) range 10 ans = r*x - D ans r*x - D r*x r x D print(ans) print ans x = ans x ans r,D,x2000 = map(int, input().split()) map(int, input().split()) r x = x2000 x2000 x x = ans ans x x2000 = map(int, input().split()) map(int, input().split()) x2000 D,x2000 = map(int, input().split()) map(int, input().split()) D ans = r*x - D r*x - D ans
#k = int(input())
#s = input()
#a, b = map(int, input().split())
#s, t = map(str, input().split())
#l = list(map(int, input().split()))
#l = [list(map(int,input().split())) for i in range(n)]

r,D,x2000 = map(int, input().split())

x = x2000
for i in range(10):
    ans = r*x - D
    print(ans)
    x = ans
