#include <bits/stdc++.h>
using namespace std;
int main(){
	int r,c;	cin>>r>>c;
	if(r==c){
		cout<<(long long int)(r+1)/2*(c+1)/2-1<<endl;
	}
	else if(r%2==1&&c%2==1){
		cout<<(long long int)(r/2)*c+c/2<<endl;
	}
	else cout<<(long long int)(r*c/2-1)<<endl;
	return 0;
}