eolymp
bolt
Try our new interface for solving problems
Problems

Drawings on a piece of paper in the box

Drawings on a piece of paper in the box

\includegraphics{https://static.e-olymp.com/content/e4/e4cf301aa913430cdd7fb2ba52f74214524bda0c.gif} Vasya is a leaf in a section consisting of N cells in the horizontal and vertical M cells, and cell line on the edge of the leaflet are also visible. How many different rectangles can on this piece of paper to draw Vasya, if he only knows how to draw the lines? \InputFile In a single line through the space are two numbers \textbf{M} and \textbf{N}. All input data are natural numbers not exceeding \textbf{10^10000}. \OutputFile Single number - the desired number of rectangles. Прослушать На латинице
Time limit 2 seconds
Memory limit 64 MiB
Input example #1
10 1
Output example #1
55
Author Анатолий Присяжнюк