#include<iostream>
#include<cmath>
#include<iomanip>
using namespace std;

class projectile{
    private:
    double velocity;
    double angle;
    public:
    projectile( double v,double a)
    {
        velocity = v;
        angle = a;
    }
    void calculateheight()
    {
        double g= 9.81;
        double radians = angle * M_PI / 180.0;
        double height =(velocity * velocity * pow(sin(radians), 2))/(2 * g);
        cout << fixed << setprecision(2)<<height;
    }
};
int main()
{
    double v,a;
    projectile p(v,a);
    p.calculateHeight()
}