using System; using System.Linq; class Program { static void Main() { var arr = Console.ReadLine().Split().Select(int.Parse).ToArray(); var y = arr[0]; var m = arr[1]; var d = arr[2]; bool f = true; if (y < 1989 || 2019 < y) { f = false; } else if (y == 1989 && m == 1 && d <= 7) { f = false; } else if (y == 2019 && m >= 5) { f = false; } Console.WriteLine(f ? "Yes" : "No"); } }