#include <iostream> #include <fstream> using namespace std; ifstream fin("bac.txt"); int main() { int n,x,l=0,c=0; fin>>n; while(fin>>x) { if(x%2==0) l++; else { if(l>=2) c++; l=0; } } if(l>=2) c++;//pt ultimele cout<<c; return 0; }