#include<iostream>
#include<string.h>
using namespace std;
int main()
{
	int a[100000];
	int n;
	cin >> n >> a[];

	for(i=0;i<=n-1;i++){	
		if(a[i]*a[i+1]%4!=0){
		cout << No << endl;
		break;
		if(i==n){
			cout << Yes << endl;
		}
	}
	return 0;
}