Visits

Given an R by C grid and an integer K, decide whether a walk exists that visits every cell exactly K times, starting and ending anywhere.

Medium6GraphGreedyMathNo attempts yetTime limit2sMemory limit512 MB

Problem

Donghyeok stands on one cell of a grid with RR rows and CC columns. Write a program that decides whether he can move so that every cell of the grid is visited exactly KK times.

When Donghyeok is on the cell in row rr and column cc, he can move to (r1,c)(r-1, c) above, (r+1,c)(r+1, c) below, (r,c1)(r, c-1) on the left, or (r,c+1)(r, c+1) on the right. He cannot move outside the grid.

He may start on any cell and finish on any cell. The cell he starts on counts as one visit.

Input

The first line contains RR, CC, and KK, separated by spaces. (1R,C,K10001 \le R, C, K \le 1000)

Output

Print 11 if every cell can be visited exactly KK times, and 00 otherwise.