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