#include using namespace std; #define rep(i, a, b) for(int i=a; i pii; typedef pair pll; typedef vector vi; typedef vector vll; int main() { cin.tie(0)->sync_with_stdio(0); cin.exceptions(cin.failbit); int n, m; cin >> n >> m; ll s = 0; int x, mn = (m%2 || n%2) ? 0 : 100000; for (int i=0; i> x; s += x; if ((i % 2) == (j % 2)) {} else { mn = min(x, mn); } } } cout << s - mn << endl; }