import strutils,sequtils,tables
proc check(x:string):int=
 let x=x.parseInt
 if x mod 4==0:
  return 4
 elif x mod 2==0:
  return 2
 else:
  return 1
let
 n=stdin.readline.parseInt
 a=stdin.readline.split.map(check).toCountTable
if a[1]==2*a[4]:
 if a[2] mod 2==0:
  echo "Yes"
 else:
  echo "No"
elif a[1]<2*a[4]:
 echo "Yes"
else:
 echo "No"