# B
r, d, x = map(int, input().split())
xi = [[] for i in range(11)]
xi[0] = x
for i in range(10):
    xi[i + 1] = xi[i] * r - d
xi = xi[1:11]
print(*xi, sep='\n') r, d, x = map(int, input().split()) r map(int, input().split()) map int input().split() ().split () input split d x [] for i in range(11) for i in range(11) i range(11) range 11 for i in range(11) [] xi = [[] for i in range(11)] xi [[] for i in range(11)] xi[0] = x xi[0] xi 0 x for i in range(10):
    xi[i + 1] = xi[i] * r - d i range(10) range 10 xi[i + 1] = xi[i] * r - d xi[i + 1] xi i + 1 i 1 xi[i] * r - d xi[i] * r xi[i] xi i r d xi = xi[1:11] xi xi[1:11] xi 1:11 1 11 print(*xi, sep='\n') print *xi xi sep='\n' sep '\n' r, d, x = map(int, input().split()) map(int, input().split()) r d, x = map(int, input().split()) map(int, input().split()) d xi = xi[1:11] xi[1:11] xi xi = [[] for i in range(11)] [[] for i in range(11)] xi x = map(int, input().split()) map(int, input().split()) x
# B
r, d, x = map(int, input().split())
xi = [[] for i in range(11)]
xi[0] = x
for i in range(10):
    xi[i + 1] = xi[i] * r - d
xi = xi[1:11]
print(*xi, sep='\n')
