import java.util.Scanner; public class Main { public static void main(String[] a) { Scanner s=new Scanner(System.in); long R=s.nextLong(),C=s.nextLong(),S=0; if(R*C%2>0){//all odd S=(R==C)?(R-1)*(R+1)/4:R*C/2; }else{// at least even S=R*C/(R==C?4:2)-1; } System.out.println(S); } }