#include using namespace std; int main() { int a,b,c,d,e,f; cin>>a>>b>>c>>d>>e>>f; cout << b*f - c*e <<" " << c*d - a*f <<" " << a*e - b*d <<"\n"; }