#include <bits/stdc++.h>
using namespace std;
const double PI = 3.1415926532;
double n, r;
int main() {
  cin >> n >> r;
  cout.precision(9);
  cout << fixed << r * sin(PI / n) / (1 - sin(PI / n)) << endl;
}
