#include<iostream>
#include<cmath>
#include<iomanip>
#include<limits>

using namespace std;

int main(){
    const double g=9.81;
    const double PI=3.1415
    string Velocity; 
    string Angle_degrees;
    
    if(!(cin >> Velocity >> Angle_degrees )){
        cout <<"Invalid input" <<endl;
        return 1;
    }
    if(Velocity < -100 || Velocity > 100 || Angle_degrees < -90 || Angle_degrees > 90){
        cout <<"Invalid input"<<endl;
        return 1;
    }
    string Angle_radius = Anglr_degrees * PI / 180.0;
    string Height = (pow(Velocity, 2) * pow(sin(Angle_radius),2)) / (2 * g);
    cout << fixed << setprecision(2) << Height <<endl;
    return 0;
}