#include <iostream>
#include <cmath>
#include <iomanip>
using namespace std;
class Projectile
{
    private:
    float velocity;
    float angle;
    public:
    Projectile(float v, float a)
    {
        if(v<0||a<0)
        {
            cout<<"Invalid number";
            exit(0);
        }
        else
        {
            velocity=v;
            angle=a;
        }
    }
    void computeMaxHeight()
    {
        const float g= 9.81;
        float rad= angle*M_PI/180.0;
        float height= (velocity*velocity*pow(sin(rad),2))/(2*g)
        cout<<fixed<<setprecision(2)<<height;
    }
};
int main()
{
    float v,a;
    cin>>v>>a;
    Projectile p(v,a);
    p.computeMaxHeight();
    return 0;
}