#include using namespace std; using ll=long long; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); ll H,W,K; cin>>H>>W>>K; if(K==0){ for(int h=0;hH*W-H-W+2){ cout<<-1<<"\n"; return 0; } assert(0); }