// text3_B.cpp : 定义控制台应用程序的入口点。
//

#include "stdafx.h"
#include "iostream"
using namespace std;

int main()
{
	int a = 0;
	int b = 0;
	int i = 0;
	int temp = 0;
	cin >> a;
	int*p = new int[a];
	b = (int)getchar();
	while (b!=NULL) {
		p[i] = b;
		i++;
		b = (int)getchar();
	}
	for (int m = 0; m < a; m++) {
		for (int n = m; n < a; n++) {
			temp = m;
			p[m] = p[n];
			p[n] = p[temp];
			for (int k = 0; k < a-1; k++) {
				while (p[k] * p[k + 1] % 4 != 0)
					cout<<"No";
			}
		}
	}
	cout << "Yes";
	delete[] p;
    return 0;
}
