Tudor is building a pen for his goats. goats need a rectangular pen with area exactly square meters to roam.
Tudor needs to buy some fencing to demarcate the pen. The fencing comes in one meter units, so the rectangular pen must have side lengths that are an integer number of meters.
Tudor will randomly select, among all such possible rectangular pens with area square meters, one pen to build. Compute the minimum amount of fencing, in meters, that Tudor needs to buy to guarantee that he can build the randomly selected pen.
The first and only line of input contains a single positive integer, .
Output the minimum amount of meters of fencing Tudor must buy.