N = int(input())
*A, = map(int, input().split())
count = 0

ans = N//3+max(N%3,0)
for i in range(len(A)):
    if A[i]%4==0:
        count = count + 1

if count>=ans:
    print("Yes")
else:
    print("No")