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

if flag == False:
    print("No")
