#define _GLIBCXX_DEBUG #include //#include using ll = long long; using ld = long double; #define FOR(i, a, b) for(ll i = (ll)(a); i < (ll)(b); i++) #define rep(i, n) FOR(i, 0, n) #define rFOR(i, a, b) for(ll i = (ll)(a - 1); i >= (ll)(b); i--) #define rrep(i, a) rFOR(i, a, 0) #define all(c) begin(c),end(c) using namespace std; typedef pair P; typedef vector vl; typedef vector vvl; typedef vector

vP; const ll MOD = 1000000007; const ll MOD2 = 998244353; const ld PI = acos(-1); const ll INF = 1e18; struct edge{ll to, cost;}; template bool chmax(T &a, const T &b) { if (a < b) { a = b; return true; } return false; } template bool chmin(T &a, const T &b) { if (a > b) { a = b; return true; } return false; } int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int H,W,X; cin >> W >> H >> X; vvl ans(H,vl(W,-1)); rep(i,H){ rep(j,W){ if(i%3==2||j%3==2||(H-1-i)%3==2||(W-1-j)%3==2) ans[i][j]=0; } } int cnt=0; rep(i,min(H,3)){ rep(j,min(W,3)){ if(ans[i][j]==-1) cnt++; } } if(cnt*9