Faija loves to do art. She has a graph, which has rows and columns.
She creates new art every day. Each piece of art costs a certain amount of ink to create. So she buys ink from the market accordingly. Today Faija wants to draw a star on the graph and Faija wants the area of her star to be maximum. Faiza and you are good friends. As such, Faiza wants to know from you, how many boxes of the graph should be filled with ink to make a star.
Star in grid will look like below image:
Each arm from the center of the star is equal in length.
The first line will contain 2 integers and () — the number of rows and columns, respectively. It is guaranteed that both n and m will be odd.
Print how many boxes to color.
Input | Output |
---|---|
3 3 | 9 |
Input | Output |
---|---|
5 7 | 17 |
Input | Output |
---|---|
9 21 | 33 |