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