(define n(read))
(define a 0)
(define c2 0)
(define c4 0)
(dotimes(i n)(set! a(read))(if(=(mod a 4)0)(inc! c4)(when(even? a)(inc! c2))))
(when(and(> c4 0)(>=(+(* c4 2)1)n))(print"Yes")(exit 0))
(set! a 0)
(while(< i n)
	(if(> c4 0)
		(begin(dec! c4)(inc! i 2))
		(if(> c2 0)
			(begin(dec! c2)(inc! i))
			(begin(print"No")(exit 0))
		)
	)
)
(print"Yes")