n,m,x=map(int,input().split()) r=((m-1)//2)*((n-1)//2)*2 if x>m*n-1-r or x