Problem: It was decided in IT City to distinguish successes of local IT companies by awards in the form of stars covered with gold from one side. To order the stars it is necessary to estimate order cost that depends on the area of gold-plating. Write a program that can calculate the area of a star.

A "star" figure having n ≥ 5 corners where n is a prime number is constructed the following way. On the circle of radius r n points are selected so that the distances between the adjacent ones are equal. Then every point is connected by a segment with two maximally distant points. All areas bounded by the segments parts are the figure parts.

<image>

Input

The only line of the input contains two integers n (5 ≤ n < 109, n is prime) and r (1 ≤ r ≤ 109) — the number of the star corners and the radius of the circumcircle correspondingly.

Output

Output one number — the star area. The relative error of your answer should not be greater than 10 - 7.

Examples

Input

7 10


Output

108.395919545675

Solution (in JAVA):

Solution:
import java.util.Scanner;
import static java.lang.Math.*;

public class Star {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		double n = in.nextInt();
		long r = in.nextLong();
		double[] xs = new double[5];
		double[] ys = new double[5];		
	
		xs[0] = 1;
		ys[0] = 0;
		xs[4] = 1;
		ys[4] = 0;
		
		xs[2] = 0;
		xs[2] = 0;
		
		double x0, y0, x1, y1, x2, y2, x3, y3;

		x0 = 1;
		y0 = 0;
		
		x1 = cos(((int)n/2)/n * 2.0 * PI);
		y1 = sin(((int)n/2)/n * 2.0 * PI);
		
		x2 = cos(1/n * 2.0 * PI);
		y2 = sin(1/n * 2.0 * PI);
		
		x3 = cos(((int)n/2 + 2.0)/n * 2.0 * PI);
		y3 = sin(((int)n/2 + 2.0)/n * 2.0 * PI);
		
		double m1 = (y1 - y0)/(x1 - x0);
		double m2 = (y3 - y2)/(x3 - x2);
		
		
		xs[1] = (y2 - y0 - m2*x2 + m1 * x0)/(m1 - m2);
		ys[1] = m1 * (xs[1] - x0) + y0;
		
		xs[3] = xs[1];
		ys[3] = -ys[1];
		
		double area = 0;
		for (int i = 0; i < 4; i++) {
			area += xs[i]*ys[i+1];
			area -= ys[i]*xs[i+1];
		}
		area /= 2.0;
		area *= n;
		area *= r * r;
		
		System.out.println(area);
		in.close();
	}
}