fn main() {
    let mut s = String::new();
    std::io::stdin().read_line(&mut s).unwrap();
    let mut s = String::new();
    std::io::stdin().read_line(&mut s).unwrap();
    let a: Vec<usize> = s.trim().split_whitespace().map(|x| x.parse().unwrap()).collect();

    let mut x: isize = 0;
    let mut y: isize = 0;
    let mut z: isize = 0;

    for i in &a {
        if *i % 4 == 0 {x += 1;}
        else if *i % 2 == 0 {y += 1;}
        else {z += 1;}
    }

    println!("{}", if y>=0 {if x>=z {"Yes"} else {"No"}} else {if z<=x+1 {"Yes"} else {"No"}});
}

