public class RectangularGrid {
public static void main(String args[]){
new RectangularGrid();
}
public RectangularGrid(){
System.out.println(countRectangles(592,964));
}
public long countRectangles(int width, int height){
long result=0;
for(int i=1;i<=width;i++){
for(int j=1;j<=height;j++){
if(i!=j){
result+=(width+1-i)*(height+1-j);
}
}
}
return result;
}
}