#include using namespace std; using ll = long long; #define rep(i, n) for(int i = 0; i < n; i++) int main() { vector a(3), b(3), c(3); rep(i, 3) cin >> a[i]; rep(i, 3) cin >> b[i]; c[0] = a[1] * b[2] - a[2] * b[1]; c[1] = a[2] * b[0] - a[0] * b[2]; c[2] = a[0] * b[1] - a[1] * b[0]; rep(i, 3) cout << c[i] << " "; cout << endl; }