import itertools as itr

N = int(input())
input_a = input()
a_list = input_a.split()

def check(list1, N):
    temp = list(itr.permutations(range(N)))
    for combination in temp:
        target = []
        flag = True
        for i in combination:
            target.append(list1[i])
        for i in range(N-1):
            if (int(target[i])*int(target[i+1])%4 != 0):
                flag = False       
                break
        if flag:
            return True
    return False

if check(a_list, N):
    print("Yes")
else:
    print("No")
