#include <bits/stdc++.h>
using namespace std;
const double pi = acos(-1.0);
int main() {
  int n, r;
  double k, R;
  scanf("%d%d", &n, &r);
  k = sin(pi / n);
  R = k * r / (1 - k);
  printf("%lf", R);
}
