Question
Maximum Volume of a Rectangular Box
John was given a task to make a rectangular box during his innovation competition. He has been provided with the A cm of wire and B cm2 of special paper. He had to use the wire (for the 12 edges) and paper (for the 6 sides) to make the box. So what will be the maximum volume of that box?
Input
There is a single line of input that takes two space-separated integers representing A and B  respectively.

Constraints:
1 ≤ A,B ≤ 106
Output
Print a single integer representing the maximum volume of that box.
Example
Input:
20 14
Output:
3
Explanation:
A = 20, B = 14
The maximum volume of Rectangular Box we can get is 3 cm3.

Input:
20 16
Output:
4
Explanation:
A = 20, B = 16
The maximum volume of Rectangular Box we can get is 4 cm3.

Online