#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import itertools

N = int(input())
A = list(map(int, input().split()))


for i in itertools.permutations(A):
    ans = 'Yes'
    for n in range(N-1):
        if (i[n] * i[n+1]) % 4 != 0:
            ans = 'No'
    if (ans == 'Yes'):
        break

print(ans)