#include<bits/stdc++.h>
using namespace std;
using ll = long long;
const int MAX = 1000000005;



void solve() {
    vector<int> a(3), b(3);
    for (int i = 0; i < 3; i++) cin >> a[i];
    for (int i = 0; i < 3; i++) cin >> b[i];
    cout << a[1]*b[2]-a[2]*b[1] << " ";
    cout << a[2]*b[0]-a[0]*b[2] << " ";
    cout << a[0]*b[1]-a[1]*b[0] << endl;
}

int main() {
    ios::sync_with_stdio(0); cin.tie();
    solve();
}