#include using namespace std; int main() { int count = 0, n; while (cin >> n && n != 0) { if (n % 2 == 0) count++; } cout << count << endl; return 0; }