Number of rectangles
Easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
The grid consists of unit squares. How many different rectangles can be drawn on it?
The sides of the rectangles must be parallel to the grid lines, and each rectangle should cover an integer number of unit squares. Two rectangles of the same size are considered different if they are located in different positions on the grid.
Input
Two positive integers and .
Output
Print the number of different rectangles that can be drawn on the grid.
Examples
Input #1
Answer #1
Submissions 830
Acceptance rate 18%