N = int(input())
A = list(map(int, input().split(" ")))

two = 0
one = 0
zero = 0
for a in A:
	if a%4 == 0:
		two += 1
	elif a%2 == 0:
		one += 1
	else:
		zero += 1

print("Yes" if zero <= two+(one==0) else "No") 
