using System;
using System.Collections.Generic;
namespace Znanija1 {
internal class Program {
public static void Main(string[] args) {
int c = 0;
string s;
s = Console.ReadLine();
var a = s.Split(' ');
for (int i = 0; i < a.Length; ++i) {
if (Int32.Parse(a[i]) % 2 == 0) {
c++;
}
}
Console.Write(c);
}
}
}