#Q20. 「一本通 1.3 例 2」生日蛋糕
「一本通 1.3 例 2」生日蛋糕
Description
Mr. W wants to make an M-layer birthday cake with a volume of , where each layer is a cylinder.
Let the i-th layer of the cake from the bottom up be a cylinder with radius and height . For , it is required that and . Since we need to apply cream to the cake, we want to minimize the surface area of the cake (excluding the bottom surface of the lowest layer).
Let . For given and , write a program to find the cake's design (appropriate values of and ) that minimizes . (All data above, except for , are positive integers.)

Input Format
The first line contains , indicating the cake's volume is .
The second line contains , indicating the number of layers in the cake.
Output Format
Output a single line with an integer (if no solution exists, output ).
Sample 1
Note: Cylinder formulas: Volume ; Lateral surface area ; Base area .
100
2
68
Data Range and Hints
For all data, , .