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)