#include<stdio.h>
int cnt1, cnt2, cnt4;
int n;
int x;
int main()
{
	scanf("%d", &n);
	for(int i = 0; i < n; i++)
	{
		scanf("%d", &x);
		if(x % 4 == 0)
			cnt4 ++;
		else if(x % 2 == 0)
			cnt2 ++;
		else 
			cnt1 ++;
	}
	if(cnt4 >= cnt1)
		printf("YES\n");
	else if(cnt2 == 0 && cnt4 >= cnt1 + 1)
		printf("YES\n");
	else
		printf("NO\n");
	return 0;
}