Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/ellips-yuzi

Area of an ellipse

Easy 1000 ms 64 MB 13%
Share

The semi-major axis $a$ and semi-minor axis $b$ of an ellipse are given. Find its area $S$:

$$S = \pi * a * b$$

Use $\pi = 3.141592653589793$.

An ellipse: the semi-major axis a and the semi-minor axis b drawn from its centre

Input

One line with two positive integers: $a$ and $b$.

Output

One number — $S$, with exactly 2 digits after the decimal point (for example, 47.12).

Note

$1 \le b \le a \le 10^{4}$

Examples

Input #1
5 3
Output #1
47.12
Input #2
7 2
Output #2
43.98

Sign in to submit a solution

Signing up is free and takes a minute.