#include <iostream>
#include <cmath>
#include <iomanip>
using namespace std;
class Projectile {
    private:
    float velocity;
    float angle;
    
    public:
    Projectile(float v , float a){
        velocity=v;
        angle=a;
    }
    void calculateHeigth(){
        if ( velocity < 0 || angle <0){
            cout<<"Invalid input"<<endl;
            return;
        }
        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<<endl; 
    }
};
int main (){
    float v,a;
    cin >>v>>a;
    Projectile p(v,a);
    p.calculateHeight();
    return 0;
}