r,c = map(int,input().split()) x = (r*c+1)//2 if r==c: x//=2 print(x-1)