#include using namespace std; int main(){ vector> M(2, vector(2)); for (int i = 0; i < 2; i++){ for (int j = 0; j < 2; j++){ cin >> M[i][j]; } } for (int i = 0; i < 2; i++){ for (int j = 0; j < 2; j++){ int ans = 0; for (int k = 0; k < 2; k++){ for (int l = 0; l < 2; l++){ ans += M[i][k] * M[k][l] * M[l][j]; } } cout << ans; if (j == 0){ cout << ' '; } } cout << endl; } }