1#include <bits/stdc++.h>2 3using namespace std;4 5int main() {6 int count = 0;7 while (true) {8 int x;9 cin >> x;10 if (x == 0) {11 break;12 }13 14 if (x % 2 == 0) {15 count++;16 }17 }18 19 cout << count;20 return 0;21}