407755: GYM102890 F Fit them all
Description
One of the problems in Jaime's package delivery company is to load platforms with the packages that need to be delivered in a day. Each day Jaime needs to ship packages in a platform with a rectangular shape of size $$$W$$$ width and $$$H$$$ height, these packages are contained in cubic boxes of different sizes, but, as Jaime loves sequences, he always loads the platforms starting with a box with size 1x1x1, then with a box with size 2x2x2, and the $$$K$$$-th loaded box in the truck will be of size KxKxK. Since all the packages contain fragile material, the boxes can not be stacked, this is, a box can not be over another box, but they can be placed side by side without leaving any empty space between them.
Jaime needs your help to find the maximum number of packages that can be loaded in a given platform.
InputThe first and only line of input contains two integer numbers separated by a space, $$$W$$$ and $$$H$$$ ($$$1 \leq W, H \leq 30$$$), representing the width and height of the rectangular shaped platform.
OutputOutput a line containing a single integer, the maximum number of boxes that can be loaded into the platform.
ExamplesInput2 2Output
1Input
4 3Output
2