a={} b={} c={} a["x"],a["y"],a["z"]=map(int,input().split()) b["x"],b["y"],b["z"]=map(int,input().split()) c["x"]=a["y"]*b["z"]-a["z"]*b["y"] c["y"]=a["z"]*b["x"]-a["x"]*b["z"] c["z"]=a["x"]*b["y"]-a["y"]*b["x"] print(c["x"],c["y"],c["z"])