#include<iostream>
#include<cmath>
#include<iomanip>
using namespace std;
class Projectile{
    float velocity,angle;
public:
    Projectile(float v,float a){
        velocity=v;
        angle=a;
    }
    void getMaxHeight(){
        if(velocity<=-100||velocity>=100||angle<=-90||angle>90){
            cout<<"Invalid input"<<endl;
            return;
        }
        float g=9.81;
        float rad=angle*3.14159/180;
        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.getMaxHeight();
    ret
}