import sys, time, random from collections import deque, Counter, defaultdict input = lambda: sys.stdin.readline().rstrip() ii = lambda: int(input()) mi = lambda: map(int, input().split()) li = lambda: list(mi()) inf = 2 ** 61 - 1 mod = 998244353 ax, ay, az = mi() bx, by, bz = mi() crossx = ay * bz - az * by crossy = az * bx - ax * bz crossz = ax * by - ay * bx print(crossx, crossy, crossz)