#include using namespace std; typedef long long ll; typedef pair P; #define REP(i,n) for(int i=0;i> a >> b >> c >> d; x[0][0]=a*a+b*c; x[0][1]=a*b+b*d; x[1][0]=a*c+d*c; x[1][1]=b*c+d*d; x[0][0]=x[0][0]*a+x[0][1]*c; x[0][1]=x[0][0]*b+x[0][1]*d; x[1][0]=x[1][0]*a+x[1][1]*c; x[1][1]=x[1][0]*b+x[1][1]*d; cout << x[0][0] << ' ' << x[0][1] << endl; cout << x[1][0] << ' ' << x[1][1] << endl; return 0; }