import java.io.*; import java.util.*; import java.math.*; class Main { public static void out (Object o) { System.out.println(o); } public static boolean solve (int n , int m) { if (n == 1 || m == 1) return n == 2 || m == 2; return n % 2 == 0 || m % 2 == 0; } public static void main (String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] line = br.readLine().split(" "); int n = Integer.parseInt(line[0]); int m = Integer.parseInt(line[1]); out(solve(n ,m) ? "YES" : "NO"); } }