#00018F

Kate i Luce

Kate has decided to start breeding ostriches. For breeding ostriches, it is necessary to have a rectangular surface of P square meters, which should be fenced with wire. As the initial capital is barely enough to buy ostrich, and her neighbors Luce said that she could save money on the fence, if she chooses a suitable size of the rectangle.

She begs you to help her. Write a program whose input data will be P - the required land area, and will print what is the minimum length of the wire which will completely enclose a rectangular piece of land with the given area P

Note:
The length and the width of the land must be integer.



InputNatural number P (1 ≤ P ≤ 30 000) - surface (in square meters) of land required for breeding ostriches.


OutputNatural number D - the minimum wire length in meters, which is necessary in order to hedge land.


Input:
20
Output:
18

Input:
7
Output:
16

Submit solution

Coming later

The grading service will be connected in a later migration step. You can inspect the task and your previous results now.