local A = io.read("*n")
local B = io.read("*n")
local function test(A,B)
    local newMin = math.min(A,B)
    local newMax = math.max(A,B)
    print(newMin,newMax)
    for i=newMin,newMax do
        if A*B*i %2 == 1 then
            return "YES"
        end
    end
    return "NO"
end
print(test(A,B))