#include <stdio.h>
#include <stdlib.h>

int even(int arr[16], int n){

	int buffer;
	int count = 0;

	for(int i = 0; i < n; i++){

		buffer = arr[i];

		for(int j = i + 1; j < n; j++){

			buffer = buffer*arr[j];

			if(buffer % 2 == 0){

				count++;

			}

		}

	}

	printf("%d", count);

}

int main()
{

    int n;
    int arr[16]; //= {5, 3, 2, 5, 2};
	scanf("%d", &n);

	for(int i = 0; i < n; i++){

		scanf("%d", &arr[i]);

	}

	//n = 5;

	even(arr, n);

}
