Cardboard Container#9880

Cardboard Container

1 second
128 megabytes
Very easy

Fidget cubes 2017. In this problem, a fidget cube is a cube with side length .

You work in the planning department of a company that manufactures and ships fidget cubes. Your market analysis has shown that customers want to receive shipments of exactly fidget cubes.

This means you have to design a container that holds exactly fidget cubes. Since fidget cubes are very fragile, there must be no empty space in the container: otherwise, the cubes might move around, bump into each other and get damaged. Therefore, you decide to ship the fidget cubes in a rectangular cardboard box.

The cost of a cardboard box is equal to its surface area: each square unit of surface costs exactly one unit of money. Of course, you want to spend as little money as possible. Subject to the above constraints, how much money do you have to spend on a box for fidget cubes?

Input

One integer v~(1 \le v \le 10^6) — the number of fidget cubes that the box must hold.

Output

Print the cost of the cheapest box satisfying the conditions of the statement.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading

Example 3

Loading
Loading

Example 4

Loading
Loading