#include using namespace std; int main() { long N,M; cin>>N>>M; cout<<(N*M-1)/(N==M?4:2)<