| Winter Cup 4.0 Online Mirror Contest |
|---|
| Finished |
You are given a rectangle of dimensions $$$N\times M$$$ composed of $$$1\times 1$$$ squares. Your job is to count the number of squares inside that rectangle. The squares we are talking about can have any side length.
For example the number of squares inside a $$$2\times 3$$$ rectangle is $$$8$$$ : $$$6$$$ of side length $$$1$$$ and $$$2$$$ of side length $$$2$$$.
The first and only line of the input contains two integers $$$1 \le N,M \le 10^6$$$
Print a single integer, the answer to the problem
2 3
8
4 4
30
| Name |
|---|


