Problems
Number of rectangles
Number of rectangles
The grid consists of $n \times m$ unit squares. How many different rectangles can be drawn on it?
The sides of the rectangles should be parallel to the grid lines. The rectangle must cover an integer number of squares. Two rectangles of the same size are considered different if they are located in different places on the grid.
\InputFile
Two positive integers $n$ and $m~(n, m \le 10^5)$.
\OutputFile
Print the number of different rectangles that can be drawn on the grid.
\includegraphics{https://static.eolymp.com/content/d1/d1dda1e8e237ac5498d1e4d94acfb5f34224123e.gif}
Input example #1
2 3
Output example #1
18