#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
class Projectile {
    private:
    double velocity;
    double angle;
public: 
Projectile(double v, double a) {
    velocity=v;
    angle=a;
} 
void maxHeight() {
    if (velocity<0 || angle<0) {
        cout << "Invalid iinput";
        return;
    }
    double g=9.81;
    double rad=angle*M_PI / 180.0;
    
    double height=(velocity*velocity*sin(rad)*sin(rad)) / (2*g);
    cout << fixed << septprecision(2) << height;
}
};
int main() {
    double v,a;
    cin >> v >> a;
    Projectile P(v, a);
    p.maxHeight();
    return 0;
}