fn main() { let mut s = String::new(); std::io::stdin().read_line(&mut s).ok(); let s = s.trim(); let ones = s.chars().filter(|&c| c == '1').count(); if (s.len() > 1 && s.ends_with(&("0".repeat(s.len()-ones)))) || (s.len() == ones && s.len() > 1) || ones == 2 { println!("Yes"); } else { println!("No"); } }