use std::io::Read; fn solve(nm: Vec<&str>) { let coin100ok = nm[0].chars().last().unwrap().to_string().parse::().unwrap() % 2 == 0; let coin10ok = nm[1].chars().last().unwrap().to_string().parse::().unwrap() % 2 == 0; if coin100ok { if coin10ok { println!("{}", "Yes"); } else { println!("{}", "No"); } } else { if nm[1].len() > 1 && coin10ok { println!("{}", "Yes"); } else { println!("{}", "No"); } } } fn main() { let mut nm = String::new(); std::io::stdin().read_to_string(&mut nm).ok(); let nm: Vec<&str> = nm.trim().split('\n').take(2) .map(|s| s.trim()) .collect(); solve(nm); }