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 CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1e9 + 7;
double N, R;
double degree;
struct line_t {
  double m, q;
  line_t() {}
  line_t(pair<double, double> p1, pair<double, double> p2) {
    if (p1.first > p2.first) swap(p1, p2);
    m = (p2.second - p1.second) / (p2.first - p1.first);
    q = (p1.second - m * p1.first);
  }
  pair<double, double> intersection(line_t& l2) {
    double x = (l2.q - q) / (m - l2.m);
    double y = l2.m * x + l2.q;
    return {x, y};
  }
};
pair<double, double> coordinate_point(int i) {
  double x = sin(degree * i) * R;
  double y = cos(degree * i) * R;
  return {x, y};
}
double distance(pair<double, double> a, pair<double, double> b) {
  double dx = abs(b.first - a.first);
  double dy = abs(b.second - a.second);
  return sqrt(dx * dx + dy * dy);
}
int main() {
  ios::sync_with_stdio(0);
  cin >> N >> R;
  degree = 3.14159265358979323846 * 2 / N;
  cout.precision(20);
  pair<double, double> a = coordinate_point(0);
  pair<double, double> b = coordinate_point(N / 2);
  pair<double, double> a1 = coordinate_point(1);
  pair<double, double> b1 = coordinate_point(N / 2 + 2);
  line_t l1(a, b), l2(a1, b1);
  pair<double, double> intersection = l1.intersection(l2);
  line_t base(a, a1);
  line_t perp;
  perp.q = 0;
  perp.m = (intersection.second / intersection.first);
  pair<double, double> base_cad = perp.intersection(base);
  double h_triangle = distance(intersection, base_cad);
  double b_triangle = distance(a, a1);
  double area_triangle = (b_triangle * h_triangle) / 2;
  double areaAllCircle = (R * R * 3.14159265358979323846);
  double sector = areaAllCircle / N;
  double h_big_t = distance({0, 0}, base_cad);
  double big_t_area = (h_big_t * b_triangle) / 2;
  double cord_area = sector - big_t_area;
  double single_part = cord_area + area_triangle;
  double result = areaAllCircle - single_part * N;
  cout.precision(30);
  cout << result;
  return 0;
}