#include <bits/stdc++.h>
using namespace std;
signed main() {
  double r, n;
  cin >> n >> r;
  double s = sin(360 / n / 2 * 3.14159265 / 180);
  double ans = s * r / (1 - s);
  cout << fixed << setprecision(9) << ans;
}
