#include 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<