from itertools import permutations
def ss():
    n = int(input())
    arr  =  input().split(' ')
    arr = [int(x) for x in arr]
    
    #print(arr)
    per = list(permutations(arr))
    #print(per)
    for i in range(len(per)):
        #for ii in range(1, n-1):
        if all  ((per[i][x] * per[i][x+1] )%4 == 0 for x in range(n-1)) :
            return 'Yes'

    return 'No'
            
print(ss())
