def count_two(n):
	count = 0
	while n%2 == 0:
		n //= 2
		count += 1
	return count

n = int(input())
a = tuple(map(int, input().split(" ")))

than_2, than_1, than_0 = 0, 0, 0 
for a_i in a:
	count_two_a_i = count_two(a_i)
	if 2 <= count_two_a_i:
		than_2 += 1
	elif 1 <= count_two_a_i:
		than_1 += 1
	else:
		than_0 += 1

if (than_0 + bool(than_1==1)) / 2 <= than_2:
	print("Yes")
else:
	print("No")