#include <iostream>
using namespace std;
int main() {
int arr[3][4] = {{1,2,3,4},{5,6,7,8},{9,10,11,12}};
int res = 0;
for(int i = 0; i < 3; i++) {
for(int j = 0; j < 4; j++) {
if(i % 2 == 0 && j % 2 == 1) {
res += arr[i][j];
}
}
}
cout << res << endl;
return 0;
}