#include<iostream>
#include<cstdio>
#include<iomanip>
#include<algorithm>
#include<vector>
#include<string>
#include<cstring>
#include<cmath>

#define vint vector<int>
#define vstr vector<string>
#define vll vector<long long>
#define ll long long
#define pf printf
#define sf scanf
#define pft	printf("\t")
#define pfn printf("\n")
#define pfk printf(" ")
#define N 1000000007
#define PI 3.1415926

using namespace std;

int main() {
	int n;
	sfd(n);
	int num;
	ll ans = 1;
	for( int i=0; i<n; i++ ) {
		sfd(num);
		ans *= num;
	}
	if( ans%4==0 ) {
		pf("Yes");
	}else {
		pf("No");
	}
	return 0;
}