using System; class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(' '); var a = int.Parse(input[0]); var b = int.Parse(input[1]); Console.WriteLine(Convert.ToString(a, 2).Length == Convert.ToString(b, 2).Length? "Yes" : "No"); } }