r,t,x=map(int,input().split())
a=r*x-t
b=r*a-t
c=r*b-t
d=r*c-t
e=r*d-t
f=r*e-t
g=r*f-t
h=r*g-t
i=r*h-t
j=r*i-t
print(a)
print(b)
print(c)
print(d)
print(e)
print(f)
print(g)
print(h)
print(i)
print(j) r,t,x=map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split t x a=r*x-t a r*x-t r*x r x t b=r*a-t b r*a-t r*a r a t c=r*b-t c r*b-t r*b r b t d=r*c-t d r*c-t r*c r c t e=r*d-t e r*d-t r*d r d t f=r*e-t f r*e-t r*e r e t g=r*f-t g r*f-t r*f r f t h=r*g-t h r*g-t r*g r g t i=r*h-t i r*h-t r*h r h t j=r*i-t j r*i-t r*i r i t print(a) print a print(b) print b print(c) print c print(d) print d print(e) print e print(f) print f print(g) print g print(h) print h print(i) print i print(j) print j e=r*d-t r*d-t e g=r*f-t r*f-t g d=r*c-t r*c-t d r,t,x=map(int,input().split()) map(int,input().split()) r b=r*a-t r*a-t b h=r*g-t r*g-t h i=r*h-t r*h-t i x=map(int,input().split()) map(int,input().split()) x t,x=map(int,input().split()) map(int,input().split()) t a=r*x-t r*x-t a c=r*b-t r*b-t c f=r*e-t r*e-t f j=r*i-t r*i-t j
r,t,x=map(int,input().split())
a=r*x-t
b=r*a-t
c=r*b-t
d=r*c-t
e=r*d-t
f=r*e-t
g=r*f-t
h=r*g-t
i=r*h-t
j=r*i-t
print(a)
print(b)
print(c)
print(d)
print(e)
print(f)
print(g)
print(h)
print(i)
print(j)