while 1:a,b,c,A,B,C=map(int,raw_input()[::2]);print b*C-c*B,c*A-a*C,a*B-b*A