import java.util.Scanner; class Main { private static final Scanner sc = new Scanner(System.in); public static void main(final String[] args) { final int a = sc.nextInt(), b = sc.nextInt(); System.out.println(a==(b&a)?"Yes":"No"); sc.close(); } }