#include <bits/stdc++.h>
using namespace std;
long long w, h, alpha;
int main() {
  cin.tie(0);
  cin.sync_with_stdio(0);
  cin >> w >> h >> alpha;
  if (alpha >= 90) alpha = 180 - alpha;
  if (w < h) swap(w, h);
  if (!alpha) {
    cout << w * h << endl;
    return 0;
  }
  if (alpha == 90) {
    cout << h * h << endl;
    return 0;
  }
  long double al = alpha * M_PI / 180;
  long double b = -(long double)h / (2 * cos(al));
  long double a = tan(al);
  long double a2 = 0, b2 = -(long double)h / 2;
  long double intersectX = (b2 - b) / (a - a2);
  long double twidth = (long double)w / 2 - intersectX;
  long double theight = twidth * tan(al);
  if (theight < (long double)h) {
    long double tprep = sqrtl(twidth * twidth + theight * theight);
    long double first = twidth * theight;
    long double tbase = w - twidth - tprep;
    long double th = tbase / tan(al);
    long double second = tbase * th;
    cout << setprecision(10) << fixed << w * h - first - second << endl;
  } else {
    long double addition = h / tan(al);
    cout << setprecision(10) << fixed << h * (2 * intersectX + addition)
         << endl;
  }
}
