a,b=map(int,input().split())
if a==b:
	if a%2:
		a//=2
		print(a*(a+1))
	else:
		a//=2
		print(a*a-1)
else:print((a*b+1)//2-1)