Flies#323

Flies

2 sekundy
64 megabajty
Średnie

One of Bach's favorite activities is training flies. Here's a trick he taught them: flies are arranged in a circle, with each pair of neighboring flies separated by a distance of centimeters (measured directly, not along the circle). Each fly then starts moving at the same speed towards its neighbor in a clockwise direction. At every moment, the speed of each fly is directed precisely towards its corresponding neighbor. Eventually, all flies will converge at a single point—that's the trick. However, as programmers, we're more interested in calculating the total distance each fly will travel during this process.

Dane wejściowe

The input contains two integers: and (2 \le N \le 1000, 1 \le D \le 10000). The numbers are separated by spaces.

Dane wyjściowe

The output should contain one real number rounded to two decimal places, representing the answer to the problem.

Przykłady

Przykład 1

Loading
Loading