#include<iostream>
#include<cmath>
using namespace std;
class height{
    private:
    float velocity,angle;
    public:
    height(float v,float a){
        velocity=v;
        angle=a;
    }
    void compute(){
        if(velocity<0||angle>90){
            cout<<"Tnvalid input";
            return ;
        }
        const float g=9.81;
        float rad=angle*M_PI/180.0;
        float height=(velocity*velocity*power(sin(rad),2))/2(2*g);
        cout.setf(ios::fixed);
        cout.precision(2);
        cout<<height;
    }
};
int main(){
    float v,a;
    cin>>v>>a;
    height p(v,a);
    p.compute();
    return 0;
}