import math
import calendar
import fractions
import itertools

n = int(input())
a = list(map(int, input().split()))
ans = 0
for i in list(itertools.permutations(a)):
    flag = 1
    for j in range(len(i) - 1):
        if i[j] * i[j + 1] % 4 != 0:
            flag = 0
            break
    if flag == 1:
       ans = 1
       break
if ans == 1:
    print("Yes")
else:
    print("No")