#include<iostream>
#include<iomanip>
#include<math.h>
using namespace std;
class projectile
{
    private:
    float initialvelocity;
    float angle;
    public:
    projectile(float v,float a)
    {
        initialvelocity =v;
        angle=a;
    }
    void computeheught()
    {
        float g=9.81;
        if(initialvelocity<0||angle<=90||angle>90)
        {
            cout<<"Invalid input";
            return ;
        }
        float rains=angle*M_PI/180.0;
        float height=(initialvelocity*initialvelocity*pow(sin(rains),2))/(2*g);
        cout<<fixed<<setprecision(2)<<height;
    }
};
int main()
{
    float v,a;
    cin>>v>>a;
    projectile p(v,a);
    p.computeheight();
    return 0;
}