Andrew is a quirky child with an obsessive compulsion for drawing rectangles. In fact, he likes drawing rectangles so much that instead of paying attention in class, he spends his time drawing rectangles! The blank grid paper which Andrew draws rectangles on has
Python users are recommended to use PyPy over CPython. There is a significant performance increase.
Input Specification
The first line contains two space-separated integers,
Output Specification
On a single line, output the answer to Andrew's question.
Constraints
In all subtasks,
Subtask 1 [20%]
Subtask 2 [80%]
No additional constraints.
Sample Input 1
3 3
Sample Output 1
10
Explanation of Sample 1
Note that rectangles are not necessarily axis-aligned.
Sample Input 2
7 8
Sample Output 2
866
Comments