use std::io::*;

fn main() {
    let stdin = std::io::stdin();
    let mut reader = std::io::BufReader::new(stdin.lock());
    let mut s = String::new();
    let n: usize = reader.read_line(&mut s).unwrap();
    let mut s = String::new();
    reader.read_line(&mut s).unwrap();
    let mut four = 0;
    let mut two = 0;
    for e in s.split_whitespace().map(|x| x.parse::<usize>().unwrap()) {
        if e % 4 == 0 {
            four += 1;
        } else if e % 2 == 0 {
            two += 1;
        }
    };

    let other = n - four - two;

    println!("{}", if two == 0 { if other <= four + 1 { "Yes" } else { "No" } } else { if other <= four { "Yes" } else { "No" } });
}
