CCHERMAN - HERMAN

 

The 19th century German mathematician Hermann Minkowski investigated a non-Euclidian 
geometry, called the taxicab geometry. In taxicab geometry the distance between two points T1(x1, 
y1) and T2(x2, y2) is defined as: 
 
D(T1,T2) = |x1 - x2| + |y1 - y2| 
 
All other definitions are the same as in Euclidian geometry, including that of a circle: 
 
A circle is the set of all points in a plane at a fixed distance (the radius) from a fixed point (the 
centre of the circle). 
 
We are interested in the difference of the areas of two circles with radius R, one of which is in 
normal (Euclidian) geometry, and the other in taxicab geometry. The burden of solving this difficult 
problem has fallen onto you.

The 19th century German mathematician Hermann Minkowski investigated a non-Euclidian geometry, called the taxicab geometry. In taxicab geometry the distance between two points T1(x1, y1) and T2(x2, y2) is defined as:

D(T1,T2) = |x1 - x2| + |y1 - y2|  

All other definitions are the same as in Euclidian geometry, including that of a circle:  A circle is the set of all points in a plane at a fixed distance (the radius) from a fixed point (the centre of the circle).

We are interested in the difference of the areas of two circles with radius R, one of which is in normal (Euclidian) geometry, and the other in taxicab geometry. The burden of solving this difficult problem has fallen onto you.

Input

The first and only line of input will contain the radius R, an integer smaller than or equal to 10000.

Output

On the first line you should output the area of a circle with radius R in normal (Euclidian) geometry. On the second line you should output the area of a circle with radius R in taxicab geometry.

Note: Please output the result with 6 digits after the decimal point.

 

Example

Input1:
1
Output1:
3.141593 
2.000000

Input2:
21
Output2:
1385.442360 
882.000000
Input3:
42
Output3:
5541.769441 3528.000000

Added by:Hacker7
Date:2014-04-19
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:ASM32-GCC MAWK BC C-CLANG NCSHARP C++ 4.3.2 CPP CPP14 CPP14-CLANG COBOL COFFEE D-CLANG D-DMD DART ELIXIR FANTOM FORTH GOSU GRV JAVA JS-MONKEY JULIA KTLN NIM OBJC OBJC-CLANG OCT PAS-GPC PAS-FPC PICO PROLOG PYPY PYPY3 R RACKET RUST CHICKEN SQLITE SWIFT UNLAMBDA VB.NET
Resource:CROATIAN OPEN COMPETITION IN INFORMATICS 2006/2007 CONTEST 1

© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.