#include <bits/stdc++.h>
using namespace std;
int main() {
  long double N, R;
  cin >> N >> R;
  long double r = R / ((1 / sin(3.14159265358979323 / N)) - 1);
  cout << fixed << setprecision(10) << r << endl;
  return 0;
}
