#include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef pair pii; #define rep(i,x) for(int i=0;i<(int)(x);i++) int main(){ long long int r, c, ans; cin >> r >> c; ans = (r/2) * c - 1; if (r%2) ans += (long long int)ceil(c/2.0); cout << ans << endl; return 0; }