r, D, x = map(int, input().split())
x_li = [x]
for i in range(1,11):
    next_x = x_li[i-1] * r - D
    x_li.append(next_x)
    print(next_x) r, D, x = map(int, input().split()) r map(int, input().split()) map int input().split() ().split () input split D x x_li = [x] x_li [x] x for i in range(1,11):
    next_x = x_li[i-1] * r - D
    x_li.append(next_x)
    print(next_x) i range(1,11) range 1 11 next_x = x_li[i-1] * r - D next_x x_li[i-1] * r - D x_li[i-1] * r x_li[i-1] x_li i-1 i 1 r D x_li.append(next_x) x_li.append x_li append next_x print(next_x) print next_x r, D, x = map(int, input().split()) map(int, input().split()) r x = map(int, input().split()) map(int, input().split()) x next_x = x_li[i-1] * r - D x_li[i-1] * r - D next_x x_li = [x] [x] x_li D, x = map(int, input().split()) map(int, input().split()) D
r, D, x = map(int, input().split())
x_li = [x]
for i in range(1,11):
    next_x = x_li[i-1] * r - D
    x_li.append(next_x)
    print(next_x)