N = int(input())
a_arr = input().split(' ')

for i in range(len(a_arr)):
    a_arr[i] = int(a_arr)

counter = {
        2n: 0,
        4n: 0,
        n: 0
}

for j in range(len(a_arr))
    if a_arr[j] % 4 == 0:
        counter['4n'] += 1
    elif a_arr[j] % 2 == 0:
        counter['2n'] += 1
    else:
        counter['n'] += 1

indicator = N - counter['2n']/2
if counter['n'] - counter['4n'] <= 1:
    print("Yes")
else:
    print("No")
