ax,ay,az=map(int,input().split()) bx,by,bz=map(int,input().split()) l=[] l.append(ay*bz-az*by) l.append(az*bx-ax*bz) l.append(ax*by-ay*bx) print(*l)