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