using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace yukicoderTest { class Program { static void Main(string[] args) { string N = Console.ReadLine(); string X = Console.ReadLine(); string[] verstr = N.Split('.'); string[] judgestr = X.Split('.'); int[] ver = new int[verstr.Length]; int[] judge = new int[judgestr.Length]; bool flg = false; for(int i=0;i=judge[0]) { if(ver[1] >= judge[1]) { if(ver[2] >= judge[2]) { flg = true; } } } if(flg==true) { Console.WriteLine("YES"); } else { Console.WriteLine("NO"); } } } }