local ffi = require 'ffi' local C, ct = ffi.C, ffi.typeof 'uint64_t[1]' ffi.cdef 'int scanf(const char *, ...);' print((function (a, b) function f(a, b) if a==0 or b==0 then return true end if a%2==1 and b%2==1 then return false end if a%2==0 and b%2==1 then return f(a/2,b-1) end if a%2==1 and b%2==0 then return f(a-1,b/2) end return f(a/2,b-1) or f(a-1,b/2) end C.scanf("%ld%ld",a,b) return f(a[0],b[0]) and "Yes" or "No" end)(ct(), ct()))