import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); sc.close(); if (a == b) { System.out.println("Yes"); } else { int x = Math.min(a, b); int y = Math.max(a, b); if (x == 2) { for (int i = 2; i < 31; i++) { if (1 << i == y) { System.out.println("Yes"); return; } } } System.out.println("No"); } } }