#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e5 + 10;
int main() {
  double n, r;
  cin >> n >> r;
  double sum = r * sin(acos(-1) / n) / (1.00 - sin(acos(-1) / n));
  printf("%.7f", sum);
}
