#include <iostream>
using namespace std;
int main() {
int x[100][100];
int n, sum = 0, count = 0;
cin >> n;
for (int i = 0; i < n; i++) {
for (int j = 0; j < n; j++) {
cin >> x[i][j]; } }
for (int i = 0; i < n; i++) {
for (int j = 0; j < n; j++) {
if (x[i][j] < 0 and x[i][j] % 2 == 0) {
sum += x[i][j];
count++;
}
}
}
cout << count << " " << sum;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglpbnQgeFsxMDBdWzEwMF07CglpbnQgbiwgc3VtID0gMCwgY291bnQgPSAwOwoJY2luID4+IG47Cglmb3IgKGludCBpID0gMDsgaSA8IG47IGkrKykgewoJICAgIGZvciAoaW50IGogPSAwOyBqIDwgbjsgaisrKSB7CgkgICAgICAgIGNpbiA+PiB4W2ldW2pdOyB9IH0KCWZvciAoaW50IGkgPSAwOyBpIDwgbjsgaSsrKSB7CgkJZm9yIChpbnQgaiA9IDA7IGogPCBuOyBqKyspIHsKCQkJaWYgKHhbaV1bal0gPCAwIGFuZCB4W2ldW2pdICUgMiA9PSAwKSB7CgkJCSAgIHN1bSArPSB4W2ldW2pdOyAKCQkJICAgY291bnQrKzsKCQkJfQoJICAgIH0KCX0KICAgIGNvdXQgPDwgY291bnQgPDwgIiAiIDw8IHN1bTsgCglyZXR1cm4gMDsKfQ==