a,b,c = io.read("*n", "*n", "*n") if(a == 1) then print(b == 2 and "YES" or "NO") elseif(b == 1) then print(a == 2 and "YES" or "NO") else print((a % 2 == 1 and b % 2 == 1) and "NO" or "YES") end