#include<iostream>
#include<iomanip>
#include<cmath>
using namespace std;
class projectile {
private:
    double v;
    double deg;
    static constexpr double g= 9.81;
public:
  projetile(double velocity, double angleDegrees):v(velocity),deg(angleDegrees){}
  double maxHeight() const{
      const double PI = acos(-1.0);
      double rad= deg * PI / 180.0;
      double s = sin(rad);
      return(v * v * s * s) / (2.0 * g);
  }
     
};
int main(){
    double v, angle;
    cin>> v >> angle;
    projectile p(v, angle);
    cout<< fixed << setprecision(2) << p.maxHeight() <<endl;
    return 0;
}