R,C = map(int,raw_input().split()) print (R*C-1)/2 if R != C else R*R/4+R%2-1