P28347 [洛谷] [COCI2006-2007#1] Herman
普及-
题目描述

Problem Description

In the 19th century, German mathematician Hermann Minkowski studied a non-Euclidean geometry known as taxicab geometry. In taxicab geometry, the distance between two points \( T_1(x_1, y_1) \) and \( T_2(x_2, y_2) \) is defined as:
\[ D(T_1, T_2) = |x_1 - x_2| + |y_1 - y_2| \]
All other definitions are the same as in Euclidean geometry, including the definition 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 center of the circle).

We are interested in the areas of two circles with radius \( R \), one in normal (Euclidean) geometry and the other in taxicab geometry. The task of solving this problem has fallen onto you.

Input Format

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

Output Format

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

Note: Outputs within ±0.0001 of the official solution will be accepted.

Sample Input and Output

Sample Input #1

1

Sample Output #1

3.141593
2.000000

Sample Input #2

21

Sample Output #2

1385.442360
882.000000

Sample Input #3

42

Sample Output #3

5541.769441
3528.000000
输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
1
样例输出
3.141593 2.000000