# import numpy as np
import math
N = int(input())
a = list(map(int, input().split()))

two_count = 0
four_count = 0
for i in a:
    if i >= 4 and i % 4 == 0:
        four_count += 1
    elif i >= 2 and i % 2 == 0:
        two_count += 1

if two_count <= 1:
    if len(a) == 2:
        print("YES" if four_count >= 1 else "NO")
    else:
        print("YES" if four_count >= len(a)-2 else "NO")
else:
    check = len(a) - two_count
    if check == 2:
        print("YES" if four_count >= 1 else "NO")
    else:
        print("YES" if four_count >= check-2 else "NO")