#include <iostrem>
#include <cmath>
#include <iomainp>
using namespace std;
class Projectile{
    protected:
    double deg;
    static constexpr double g=9.81;
    public:
    Projectile(double velocity,double angledegrees):
    v(velocity), deg(angledegrees) {}
    double maxheight() const{
        const double PI=acos(-1.0);
        double rad=deg*PI/180.0;
        double s=sin(rad);
        return (v*v*s*s/(2.0*g));
    }
};
int main(){
    double v,angle;
    if(!(cin>>v>>angle))return 0;
    if(v<0 ||angle<0|| angle>90){
        cout<<"Invalid input";
        return 0;
    }
    cout <<fixed<<setprecision(2)<<Projectile(v,angle).maxHeight();
    return 0;
}