#include <bits/stdc++.h>
int main() {
  int R, n;
  scanf("%d%d", &n, &R);
  double alpha = (float)(3.14159265359 / n);
  printf("%.8lf\n", (double)(R * sin(alpha)) / (1 - sin(alpha)));
  return 0;
}
