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(" ")))

a_count_two = [min(count_two(a_i), 5) for a_i in a]
if a_count_two.count(0)*2 <= sum(a_count_two) and 1 <= sum(a_count_two):
	print("Yes")
else:
	print("No")