#include<bits/stdc++.h> using namespace std; const long long MAXN=1e5+5; long long n,m,k,t; long long h[MAXN][MAXN],a[MAXN][MAXN]; void check(int x,int y){ if(a[x][y]==1 || a[x][y]-3<1 || a[x][y]>t) return ; } int main(){ cin>>n>>m>>k; for(int i=1;i<=n;i++){ for(int j=1;j<=m;j++){ h[i][j]=++t; } } a[n][1]=h[n][1]; check(n,1); return 0; }