using System; using System.Linq; namespace abc { class ex { static void Main(string[] args) { var ss = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray(); var d = new DateTime(ss[0], ss[1], ss[2]); Console.WriteLine(new DateTime(1989, 1, 8) <= d && d <= new DateTime(2019, 4, 30) ? "Yes" : "No"); } } }