process.stdin.resume();
process.stdin.setEncoding('utf8');
// 自分の得意な言語で
// Let's チャレンジ！！

var lines = [];
var reader = require('readline').createInterface({
  input: process.stdin,
  output: process.stdout
});
reader.on('line', (line) => {
  lines.push(line);
});
reader.on('close', () => {
 var L = parseInt(lines[0],10);
 var H = parseInt(lines[1].split(' '),10);
var count = 0;
  console.log(H);
  
  for(var i=0;i<L;i++){
	if((i+1)%2 ===1){
    	if(parseInt(lines[1].split(' ')[i],10)%2 ===1 ){
        	count++;
        }
    }
  }
console.log(count);
  
});