a, b = gets.split.map &:to_i def dfs(n, m) return true if n == 0 || m == 0 res = false res |= dfs(n / 2, m - 1) if n % 2 == 0 res |= dfs(n - 1, m / 2) if m % 2 == 0 res end puts dfs(a, b) ? 'Yes' : 'No'