#include
using namespace std;
int main()
{
size_t N = 0, val = 0, count = 0;
cin >> N;
if (N < 100) {
for(size_t i = 0; i < N; ++i) {
cin >> val;
if (val < 300) {
if (!(val % 3)) ++count;
} else {
cout << "Value must be < 300" << endl;<br> exit(1);
}
}
} else {
cout << "N must be < 100" << endl;<br> }
cout << "Count: " << count << endl;<br> return 0;
}