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 str = Console.ReadLine(); string str2 = Console.ReadLine(); long n = int.Parse(str); long m = int.Parse(str2); n = n * 100; m = m * 10; if(n==m) { Console.WriteLine("YES"); } else { Console.WriteLine("NO"); } } } }