N, M, C = gets.split.map &:to_i if N == 1 || M == 1 ? N*M == 2 : N.even? || M.even? puts :YES else puts :NO end