using System; using System.Text.RegularExpressions; class Program { static void Main(string[] args) { var N = Console.ReadLine(); var regex = new Regex("1"); if (regex.Matches(N).Count == 2) Console.WriteLine("Yes"); else { regex = new Regex("^1{3,}0*$"); if (regex.IsMatch(N)) Console.WriteLine("Yes"); else Console.WriteLine("No"); } } }