#include <iostream>
using namespace std;
int main() {
int n, number, count = 0;
cin >> n;
for (int i = 0; i < n; i++) {
cin >> number;
if ((number / 2) % 2 == 1) count++;
}
cout << count;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CiAgICBpbnQgbiwgbnVtYmVyLCBjb3VudCA9IDA7CiAgICBjaW4gPj4gbjsKICAgIGZvciAoaW50IGkgPSAwOyBpIDwgbjsgaSsrKSB7CiAgICAgICAgY2luID4+IG51bWJlcjsgCiAgICAgICAgaWYgKChudW1iZXIgLyAyKSAlIDIgPT0gMSkgY291bnQrKzsKICAgIH0KICAgIGNvdXQgPDwgY291bnQ7CiAgICByZXR1cm4gMDsKfQ==