#include <iostream>
#include <cmath>
#include <iomanip>
using namespace std;

int main() {
    double a, b, z, s;
    cin >> a >> b >> z;
    if ((1/(tan (z * M_PI / 180)) > a/sqrt(2)/b)&&(z != 0) && (z != 90)){
    s = a * a / 2 / cos (z * M_PI / 180);
    }
    else if (z==0) {
        s=0;
    }
    else if (z==90) {
        s=a*b*sqrt(2);
    }
    else {
        s=(a*sqrt(2)-b*1/(tan(z* M_PI / 180)))*b/sin(z* M_PI / 180);
    }
    cout << setprecision(3) << fixed << s;
    return 0;
}
