while 1:a,b,c,d,e,f=map(int,raw_input().split());print b*f-c*e,c*d-a*f,a*e-b*d