#include <iostream>

int main() {
    // Input vectors A and B
    int Ax, Ay, Az;
    int Bx, By, Bz;

    // Read inputs
    std::cin >> Ax >> Ay >> Az;
    std::cin >> Bx >> By >> Bz;

    // Calculate the cross product
    int Cx = Ay * Bz - Az * By;
    int Cy = Az * Bx - Ax * Bz;
    int Cz = Ax * By - Ay * Bx;

    // Output the result
    std::cout << Cx << " " << Cy << " " << Cz << std::endl;

    return 0;
}