using System; using static System.Console; using System.Linq; using System.Collections.Generic; class Program { static int NN => int.Parse(ReadLine()); static long[] NList => ReadLine().Split().Select(long.Parse).ToArray(); public static void Main() { var c = NList; var (a, b) = (c[0], c[1]); WriteLine(Rev(a, b) ? "Yes" : "No"); } static bool Rev(long a, long b) { if (a == 0 || b == 0) return true; if ((a & 1) == 0) { if (Rev(a >> 1, b - 1)) return true; } if ((b & 1) == 0) { if (Rev(a - 1, b >> 1)) return true; } return false; } }