#include<iostream>
#include<cmath>
using namespace std;
class project{
    private:
       float velocity;
       float angle;
    public:
      project(float v , float a){
          velocity = v;
        angle = a;
      }
      void computeHeight(){
          const float g = 9.81;
          if(velocity < 0 || angle < 0){
              cout << "Inavalid input";
              return;
          }
          float rad = angle * M_PI / 180.0;
          float height + (velocity * velocity * pow(sin(rad),2)) / (2 *g);
          cout . setf(ios::fixed);
          cout . precision(2);
          cout << height;
}};
int main()
{
    float v, a;
    cin >> v >> a;
    if(v < -100 || v > 100 || a < -90 || a > 90){
        cout << "Invalid input";
    }
    project p(v , a);
    p.computeHeight();
}