
fn main(){
	let mut s = String::new();
	std::io::stdin().read_line(&mut s).unwrap();
	let n: usize = s.trim().parse().unwrap();
	let mut s = String::new();
	std::io::stdin().read_line(&mut s).unwrap();
	let v: Vec<&str> = s.trim().split(' ').collect();
	let mut a: Vec<i32> = Vec::new();
	for i in &v {
		a.push(i.parse().unwrap());
	}
	/*
	for j in 0..n {
		for i in 0..n - 1 {
			if i == j {break;}
			if (a[i] * a[j]) % 4 == 0 {
				println!("{} {}", a[i], a[j]);
				println!("Yes");
				return;
			}
		}
	}
	*/
	for i in 0..n - 1 {
		if (a[i] * a[i + 1]) % 4 == 0 {
			println!("Yes");
			return;
		}
	}
	println!("No");
}
