Ax,Ay,Az = map(int,input().split()) Bx,By,Bz = map(int,input().split()) print(Ay*Bz - Az*By,Az*Bx-Ax*Bz,Ax*By-Ay*Bx)