a, b = read_line.split.map &.to_i64 hash = Hash(Tuple(Int64, Int64), Bool).new { |hash, key| n, m = key if n < 0 || m < 0 hash[key] = false elsif n == 0 && m == 0 hash[key] = true elsif n % 2 == 1 && m % 2 == 1 hash[key] = false elsif n % 2 == 0 && m % 2 == 1 hash[key] = hash[{n // 2, m - 1}] elsif n % 2 == 1 && m % 2 == 0 hash[key] = hash[{n - 1, m // 2}] else hash[key] = hash[{n - 1, m // 2}] || hash[{n // 2, m - 1}] end } puts hash[{a, b}] ? "Yes" : "No"