using System.Numerics; public class Program { public static void Main() { //BigInteger num = BigInteger.Parse(Console.ReadLine() ?? string.Empty); //int num = int.Parse(Console.ReadLine() ?? string.Empty); string[] moji = (Console.ReadLine() ?? string.Empty).Trim().Split(' '); //string str = Console.ReadLine() ?? string.Empty; int a = int.Parse(moji[0]); int b = int.Parse(moji[1]); if(a==b) { Console.WriteLine("Yes"); } else { BigInteger d = (BigInteger)Math.Pow(a,b); BigInteger w = (BigInteger)Math.Pow(b, a); if(d==w) { Console.WriteLine("Yes"); } else { Console.WriteLine("No"); } } } }