#include <bits/stdc++.h>
using namespace std;
int main() {
  const double pi = acos(-1);
  double n, r;
  cin >> n >> r;
  double res = r * sin(pi / n) / (1 - sin(pi / n));
  cout.precision(10);
  cout << res;
  return 0;
}
