n = int(input())
a = list(map(int,input().split()))

codd = 0
cfour = 0

for i in range(n):
	if a[i]%4 == 1 or a[i]%4 == 3:
		codd += 1
	if a[i]%4 == 0:
		cfour += 1

if cfour == codd:
	print('Yes')
else:
	print('No')