#!/usr/bin/python

import sys

N = int(sys.stdin.readline())
a = [int(w) for w in sys.stdin.readline().split()]
if len(a) != N: raise

n4 = len([n for n in a if n % 4 == 0])
n2 = len([n for n in a if n % 2 == 0 and n % 4 != 0])
n1 = len([n for n in a if n % 2 != 0])

if n2 > 0: n1 += 1
answer = (n1 <= n4 + 1)

print("Yes" if answer else "No")