Module: (C++) Workshop-2 "Chess and chess players". Conditional operator

Problem

12
/13

We share a chocolate bar

Problem

Chocolate is one of the most beloved treats on the planet. Willy claims that chocolate facilitates concentration, increases the speed of information processing and improves memory. Willy always takes a chocolate bar to the party. Willy always has a rectangular shaped chocolate bar divided into \(n \cdot m\) slices. He wants to leave for the next batch part of the chocolate bar, consisting of klobes. Moreover, he wants to break the chocolate bar once in a straight line into two parts. Determine if Willy can break off exactly k slices from the chocolate in this way.

Input
The program receives three numbers as input: n, m, k.

Imprint
The program should output one of two words: YES or NO.