#include #include #include using namespace std; using namespace atcoder; using mint = modint1000000007; #define rep(i,n) for (int i = 0; i < (n); ++i) #define Inf 1000000001 int main(){ int h,w; cin>>h>>w; vector a(h,vector(w,0)); rep(i,h){ rep(j,w){ if(a[i][j]==1)continue; if(i+1=3&&w>=3&&h%2==1&&w%2==1){ /* rep(i,2){ rep(j,2){ a[h-1-i][w-1-j] ^= 1; } } */ } int ans = 0; rep(i,h){ rep(j,w){ ans += a[i][j]; } } cout<