object Main extends App {
	val N = scala.io.StdIn.readInt
	val a = scala.io.StdIn.readLine.split(" ").map(_.toLong)
	
	var count = 0
	var count1 = 0

	for(i<-a){
		if(i%4L == 0L) count = count + 1
		if(i%2L == 0L && i%4L != 0L) count1 = count1 + 1
	}

	if(count1%2 == 0){
		val A = N - count1
		if((A%2 == 0 && A/2 <= count)) print("YES")
		else if((A-1)%2 == 0 && (A-1)%2 <= count) print("YES")
		else print("NO")
	}else{
		val A = N - count1 + 1
		if((A%2 == 0 && A/2 <= count)) print("YES")
		else if((A-1)%2 == 0 && (A-1)%2 <= count) print("YES")
		else print("NO")
	}
}
