This page is still under construction.

Parts of this page are still being built. What you see may change.

Basalt Breakdown

Interview

Time limit1sMemory limit1024 MB

Summary
Given the area of a regular hexagon, compute its perimeter, allowing a small floating-point error.
Level

Easy2 of 10

Topics
Math, Geometry, Implementation
Solved
No attempts yet

Problem

One of Iceland's most popular attractions is Svartifoss ("black waterfall"). Its name derives from the black hexagonal basalt columns that frame the waterfall on either side. Originally formed from cooling lava, centuries of erosion have shaped the columns into their characteristic shape.

A group of geologists at RU went on an excursion to Svartifoss. They took some probes and performed various measurements on the hexagonal rocks that have broken off the basalt walls.

Just as they return to RU, they realise that they have forgotten a crucial measurement. They have determined the area of the hexagonal face, but they did not write down what its perimeter was. Assuming that the face has the shape of a perfect regular hexagon, help the geologists compute the perimeter.

Input

The input consists of:

  • One line with an integer aa (1≤a≤10181 \le a \le 10^{18}), the area of the hexagonal rock face in square centimetres.

Output

Output the perimeter of the rock face in centimetres. Your answer should have an absolute or relative error of at most 10−610^{-6}.

Examples2

  1. Example 1

    Input
    50
    
    Expected output
    26.32148026
    
  2. Example 2

    Input
    1234
    
    Expected output
    130.76240122