#include<iostream>
#include<cmath>
#include<iomanip>
#include<limits>
using namespace std;
int main(){
    const double g=9.81;
    const double PI=3.1415
    double velocity , 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;
    }
    double angle_radius = anglr_degrees * PI / 180.0;
    double height = (pow(velocity, 2) * pow(sin(angle_radius),2)) / (2 * g);
    cout << fixed << setprecision(2) << height <<endl;
    return 0;
}