N, M, C = gets.split.map(&:to_i) ans = if N * M % 2 == 0 and ([N, M].max <= 2 or [N, M].min >= 2) "YES" else "NO" end puts ans