Under construction

Still being built. Things may change

Artistic Souvenir

Time limit1sMemory limit1024 MB

Summary
Given the area of a circle, find the smallest square area that holds the circle with at least a 1 cm margin on every side.
Level

Easy2 of 10

Topics
Math, Geometry
Solved
No attempts yet

문제

A typical circular design on a square Delft tile.

Delft is world-famous for its blue and white pottery (also known as Delfts blauw). The earliest pieces date back to the 16th century.

During a stroll in Delft, Christiaan sees many painted pottery objects such as plates, tiles, and vases in the souvenir shops. Inspired by them, he decides to hand paint a square tile himself. He has already picked a circular design to place in the middle of the tile. He wants to leave a margin of at least 1cm1 \text{cm} around the design. Christiaan only needs to buy a square tile of a suitable size.

Given the area of the circular design, what is the minimum area of the square tile?

입력

The input has one line with an integer aa (1≤a≤10151 \leq a \leq 10^{15}), the area of the circular design in cm2\text{cm}^2.

출력

Output the minimum area of the square tile in cm2\text{cm}^2 that is needed for a design with area aa when Christiaan leaves a margin of at least 1cm1 \text{cm} around the design.

Your answer may have an absolute or relative error of at most 10−910^{-9}.

Examples2

  1. Example 1

    Input
    42
    
    Expected output
    86.7269920446
    
  2. Example 2

    Input
    20231125
    
    Expected output
    25779373.7414336279