#include using namespace std; int main(){ long long int r,c; cin>>r>>c; if(r==c){ cout<<((r+1)/2)*((c+1)/2)-1<