#include <iostream>
#include <cmath>
#include <iomanip>
using namespace std;
class Projectile{
    protected:
    double velocity;
    double angle;
    public:
    projectile(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;
    if(!(cin>>v>>angle))return 0;
    if(v<0 ||angle<0||angle>90){
        cout<<"Invalid input";
        return 0;
    }
    cout<<fixed<<setprecision(2)<<projectile(v,angle).maxHeight()
    return 0;
}