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 k
lobes. 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
.
Examples
# |
Input |
Output |
1 |
4
2
6 |
YES |
2 |
2
10
7 |
NO |