This page is still under construction.

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

Abbey Courtyard

Interview

Time limit1sMemory limit512 MB

Summary
Given the area of a square courtyard, compute the perimeter as 4 times the square root of the area, rounded to six decimal places.
Level

Easy2 of 10

Topics
Math, Implementation, Geometry
Solved
No attempts yet

Problem

Bath's annual Christmas market runs from the 23rd of November 2017 until the 10th of December 2017. During this time, the market occupies the entire square courtyard of Bath Abbey.

To brighten things up at night, a single long strand of festive lights will be run along all four equally long edges of the courtyard.

You are in charge of buying the electrical wiring to which the lights will be fixed. How much wiring do you need to outline the whole Christmas market with lights?

Input

The first line contains one integer aa, the area of the courtyard in square metres. (1≤a≤10181 \le a \le 10^{18})

Output

Print the total length of wiring needed to surround the market, 4a4\sqrt{a}, in metres. Round the value to six digits after the decimal point and print exactly six digits after the decimal point.

Examples2

  1. Example 1

    Input
    64
    
    Expected output
    32.000000
    
  2. Example 2

    Input
    1234
    
    Expected output
    140.513345