//g++ t.cpp -o t && t < p.txt
//d>p.txt&&t
 // 
#include  //
#include  // 
#include  // 
#include  // 
#include  // 
#include  // 
#include  // 
#include  // 
#include  // 
#include  // 
#include 
// #include 
// using namespace atcoder;
// g++ t.cpp -o t -I .
#define DB cerr<<"D"<;
using Q=pair,ll>;
const ll M = 998244353;
ll mod_pow(ll x, ll a) { ll an = 1; while(a > 0) { if (a&1) an = an * x % M; x = x * x % M; a >>= 1;} return an;}
ll mod_pow(ll x, ll a, ll m) { ll an = 1; while(a > 0) { if (a&1) an = an * x % m; x = x * x % m; a >>= 1;} return an;}
void add(ll& x, ll y) {x+=y; x%=M;}; void mul(ll& x, ll y) {x*=y; x%=M;}; template void chmax(T& x, U y) {if (x void chmin(T& x, U y) {if (x>y) x=y;} bool vaild(int x, int y, int hh, int ww){return 0<=x&&x0) res+=a%10, a/=10; return res;}
const int up[]={1,-1,0,0}, lf[]={0,0,1,-1};
int main() {
  int h,w,x;cin>>h>>w>>x;
  if(x%2){
    cout<<-1<0){
      cout<<-1<=w && j > (h-1)/2) break;
      a[i]++; x-=2;
      if(x==0)break;
    }
    if(x==0)break;
  }
  //for(int i=0;i0){
    cout<<-1<=w){
      for(int j=0;j