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