import itertools
N = int(input())
a = list(input().split())
all_list = list(itertools.permutations(a))
flag = False
for list in all_list:
    for i in range(len(list)-1):
        if int(a[i]) * int(a[i+1]) % 4 != 0:
            break
    print("Yes")
    flag = True
    break
if flag != True:
    print("No")
