n, m, c = map(int, input().split()) # Calculate the position (X, Y) of channel C x = (c - 1) // m + 1 y = (c - 1) % m + 1 # Check if the grid is 1x1 (but according to problem statement, at least one of N or M is >=2) # So no need to handle 1x1 case. # Check if the grid is single row or column if n == 1 or m == 1: if n * m == 2: print("YES") else: print("NO") else: # Check if either dimension is even if n % 2 == 0 or m % 2 == 0: print("YES") else: # Both are odd, check if C is at a corner is_corner = (x == 1 or x == n) and (y == 1 or y == m) if is_corner: print("NO") else: print("YES")