#C2799. Circle Calculation

    ID: 46154 Type: Default 1000ms 256MiB

Circle Calculation

Circle Calculation

You are given two positive real numbers r and r'. Your task is to compute the following:

  • The area of a circle with radius r, given by the formula \(\pi r^2\).
  • The circumference of a circle with radius r, given by \(2\pi r\).
  • The area of a circle with radius r', given by \(\pi {r'}^2\).
  • The circumference of a circle with radius r', given by \(2\pi r'\).

Each result should be printed on a separate line, rounded to 6 decimal places.

If any radius is not a positive number, it should be considered invalid. However, you can assume that the input radii are always positive.

inputFormat

The input is read from stdin and consists of two lines. The first line contains a real number r representing the initial radius. The second line contains a real number r' representing the new radius for update.

outputFormat

Print four lines to stdout:

  1. The area of a circle with radius r: \(\pi r^2\).
  2. The circumference of a circle with radius r: \(2\pi r\).
  3. The area of a circle with radius r': \(\pi {r'}^2\>.
  4. The circumference of a circle with radius r': \(2\pi r'\).

Each value must be rounded to 6 decimal places.

## sample
5
3
78.539816

31.415927 28.274334 18.849556

</p>