import sequtils, strformat, strutils let a, b = stdin.readLine.split.map parseInt ax = a[0] ay = a[1] az = a[2] bx = b[0] by = b[1] bz = b[2] cx = ay * bz - az * by cy = az * bx - ax * bz cz = ax * by - ay * bx echo &"{cx} {cy} {cz}"