import java.util.*;
import java.lang.Math;
public class Main{
	public static void main(String [] args){
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int m = in.nextInt();
		int countn = 0;
		int countm =0;
		for(int i =2;i<=n*2;i=i+2){
			countn= countn+(n-(i/2));
		}
		for(int i=2;i<=m*2;i=i+2){
			countm=countm+(m-(i/2));
		}
		System.out.print(countn+countm);
		
	}
} import java.util.*; util.* java import java.lang.Math; Math java.lang public class Main{
	public static void main(String [] args){
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int m = in.nextInt();
		int countn = 0;
		int countm =0;
		for(int i =2;i<=n*2;i=i+2){
			countn= countn+(n-(i/2));
		}
		for(int i=2;i<=m*2;i=i+2){
			countm=countm+(m-(i/2));
		}
		System.out.print(countn+countm);
		
	}
} Main public static void main(String [] args){
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int m = in.nextInt();
		int countn = 0;
		int countm =0;
		for(int i =2;i<=n*2;i=i+2){
			countn= countn+(n-(i/2));
		}
		for(int i=2;i<=m*2;i=i+2){
			countm=countm+(m-(i/2));
		}
		System.out.print(countn+countm);
		
	} main {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int m = in.nextInt();
		int countn = 0;
		int countm =0;
		for(int i =2;i<=n*2;i=i+2){
			countn= countn+(n-(i/2));
		}
		for(int i=2;i<=m*2;i=i+2){
			countm=countm+(m-(i/2));
		}
		System.out.print(countn+countm);
		
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int n = in.nextInt(); n in.nextInt() in.nextInt in int m = in.nextInt(); m in.nextInt() in.nextInt in int countn = 0; countn 0 int countm =0; countm 0 for(int i =2;i<=n*2;i=i+2){
			countn= countn+(n-(i/2));
		} int i =2; int i =2; i 2 i<=n*2 i n*2 n 2 i=i+2 i=i+2 i i+2 i 2 {
			countn= countn+(n-(i/2));
		} {
			countn= countn+(n-(i/2));
		} countn= countn+(n-(i/2)) countn countn+(n-(i/2)) countn (n-(i/2)) n (i/2) i 2 for(int i=2;i<=m*2;i=i+2){
			countm=countm+(m-(i/2));
		} int i=2; int i=2; i 2 i<=m*2 i m*2 m 2 i=i+2 i=i+2 i i+2 i 2 {
			countm=countm+(m-(i/2));
		} {
			countm=countm+(m-(i/2));
		} countm=countm+(m-(i/2)) countm countm+(m-(i/2)) countm (m-(i/2)) m (i/2) i 2 System.out.print(countn+countm) System.out.print System.out System System.out countn+countm countn countm String [] args args public class Main{
	public static void main(String [] args){
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int m = in.nextInt();
		int countn = 0;
		int countm =0;
		for(int i =2;i<=n*2;i=i+2){
			countn= countn+(n-(i/2));
		}
		for(int i=2;i<=m*2;i=i+2){
			countm=countm+(m-(i/2));
		}
		System.out.print(countn+countm);
		
	}
} public class Main{
	public static void main(String [] args){
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int m = in.nextInt();
		int countn = 0;
		int countm =0;
		for(int i =2;i<=n*2;i=i+2){
			countn= countn+(n-(i/2));
		}
		for(int i=2;i<=m*2;i=i+2){
			countm=countm+(m-(i/2));
		}
		System.out.print(countn+countm);
		
	}
} Main
import java.util.*;
import java.lang.Math;
public class Main{
	public static void main(String [] args){
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int m = in.nextInt();
		int countn = 0;
		int countm =0;
		for(int i =2;i<=n*2;i=i+2){
			countn= countn+(n-(i/2));
		}
		for(int i=2;i<=m*2;i=i+2){
			countm=countm+(m-(i/2));
		}
		System.out.print(countn+countm);
		
	}
}