inputted = list(map(int, input().split()))
r = inputted[0]
D = inputted[1]
x2000 = inputted[2]

x_i_1 = (lambda r, D: lambda xi: r * xi - D)(r, D)


for i in range(1, 10 + 1):
    current = x_i_1(x2000) if i == 1 else x_i_1(prev)
    print(current)
    prev = current inputted = list(map(int, input().split())) inputted list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split r = inputted[0] r inputted[0] inputted 0 D = inputted[1] D inputted[1] inputted 1 x2000 = inputted[2] x2000 inputted[2] inputted 2 x_i_1 = (lambda r, D: lambda xi: r * xi - D)(r, D) x_i_1 (lambda r, D: lambda xi: r * xi - D)(r, D) lambda r, D: lambda xi: r * xi - D lambda xi: r * xi - D r * xi - D r * xi r xi D xi r D r D for i in range(1, 10 + 1):
    current = x_i_1(x2000) if i == 1 else x_i_1(prev)
    print(current)
    prev = current i range(1, 10 + 1) range 1 10 + 1 10 1 current = x_i_1(x2000) if i == 1 else x_i_1(prev) current x_i_1(x2000) if i == 1 else x_i_1(prev) i == 1 i 1 x_i_1(x2000) x_i_1 x2000 x_i_1(prev) x_i_1 prev print(current) print current prev = current prev current D = inputted[1] inputted[1] D x_i_1 = (lambda r, D: lambda xi: r * xi - D)(r, D) (lambda r, D: lambda xi: r * xi - D)(r, D) x_i_1 r = inputted[0] inputted[0] r current = x_i_1(x2000) if i == 1 else x_i_1(prev) x_i_1(x2000) if i == 1 else x_i_1(prev) current inputted = list(map(int, input().split())) list(map(int, input().split())) inputted x2000 = inputted[2] inputted[2] x2000 prev = current current prev
inputted = list(map(int, input().split()))
r = inputted[0]
D = inputted[1]
x2000 = inputted[2]

x_i_1 = (lambda r, D: lambda xi: r * xi - D)(r, D)


for i in range(1, 10 + 1):
    current = x_i_1(x2000) if i == 1 else x_i_1(prev)
    print(current)
    prev = current
