n = int(input())
arr = list(map(int, input().split()))
num_4_multi = len(arr) // 2
cnt = len([i for i in arr if i % 4 == 0])
if len(arr) % 2 == 0:
    cnt += arr.count(2) // 2
else:
    cnt += arr.count(2) / 3
if num_4_multi <= cnt: print("Yes")
else: print("No")