#include #include #include #include #include #include #include #include #include #include using ll = long long; using namespace std; int main(){ ll r, c, x = 0; cin >> r >> c; if (r%2) x = c; r /= 2; if (c%2) x = (x+1)/2; else x /= 2; if (r != c) cout << r*c -1 + x << endl; else { c /= 2; cout << r*c - 1 + x << endl; } }