# when input length is odd, n-1 / 2
# when input length is even, n / 2
# 6
# 2 7 1 8 2 8
# 1 8 7 8 2 2
# # # # # #
# 3個(len/2)４の倍数がYesを出力できる
# 4の倍数の個数がlen/2以下になるときその個数分*2個分２があれば、Yesを出力できる
N = int(input())
input_list = [int(i) for i in input().split()]
four_count = 0
two_count = 0

for i in input_list:
    if i % 4 == 0:
        four_count += 1
    elif i % 2 == 0:
        two_count += 1

const = N // 2

if const > four_count:
    if const - four_count <= two_count:
        print("Yes")
    else:
        print("No")
elif const == four_count:
    print("Yes")
else:
    print("Yes")