#![allow(non_snake_case, unused_imports)]
use proconio::{fastout, input, marker::*};

#[fastout]
fn main() {
    input! {
        Ax: isize, Ay: isize, Az: isize,
        Bx: isize, By: isize, Bz: isize,
    }

    println!(
        "{} {} {}",
        Ay * Bz - Az * By,
        Az * Bx - Ax * Bz,
        Ax * By - Ay * Bx
    );
}