B. [COCI][2006][C1] HERMAN

    传统题 1000ms 256MiB

[COCI][2006][C1] HERMAN

该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。

Description

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. Inpu

Format

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.

Samples

1
3.141593 
2.000000 
21
1385.442360 
882.000000 
42
5541.769441 
3528.000000

NOI Online 气氛赛 Day 3

未参加
状态
已结束
规则
IOI
题目
6
开始于
2022-2-26 13:00
结束于
2022-2-26 19:00
持续时间
6 小时
主持人
参赛人数
5