N = int(input())
a = list(map(int, input().split()))
num2 = sum(map(lambda x : 1 if not x%2 else 0, a))
num4 = sum(map(lambda x : 1 if not x%4 else 0, a))
if (N //2-  num4 - (num2-num4)//2 <= 0):
    print("Yes")
else:
    print("No")