import sys
N = int(input())
*A, = map(int, input().split())

count = 0
for a in range(len(A)):
    if A[a]%4==0:
        count = count + 1

if N<3:
    if count>=1:
        print("Yes")
        sys.exit()
    else:
        print("No")
        sys.exit()

num4 = (N//3)
if (N%3)!=0:
    num4 = num4 + 1

if num4<=count:
    print("Yes")
else:
    print("No")