// editor3
#include<bits/stdc++.h>
using namespace std;
class Projectile{
    private:
    float velocity,angle;
    const float g=9.81;
    public:
    Projectile(float v, float a){
        velocity=v;
        angle=a;
    }
    void computeHeight(){
        if(velocity<0||angle<0){
            cout<<"Invalid input";
            return 0;
        }
        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;
    if(v<0||a<0){
        cout<<"Invalid input";
        return 0;
    }
    Projectile p(v,a);
    p.computeHeight();
    retun 0;
}