module AbProblem def solve(a, b) if a & b == a :Yes else :No end end module_function :solve end a,b = gets.chomp.split(/\s+/).map(&:to_i) puts AbProblem.solve(a, b)