#include <bits/stdc++.h>
using namespace std;
int main() {
  double w, h, a, ans1, x, y, ans2;
  cin >> w >> h >> a;
  if (a >= 180) a -= 180;
  if (a >= 90) a = 180 - a;
  if (a == 0) {
    cout << fixed << setprecision(12) << w * h;
    return 0;
  }
  if (a == 90) {
    w = min(w, h);
    cout << fixed << setprecision(12) << w * w;
    return 0;
  }
  a = a * 3.14159265358979323846264338327950288 / 180;
  x = w / 2 - (h / (2 * cos(a)) - h / 2) / tan(a);
  y = h / 2 - (w / (2 * cos(a)) - w / 2) / tan(a);
  if (x * tan(a) > h)
    cout << fixed << setprecision(12) << h / sin(a) * h;
  else if (y * tan(a) > w)
    cout << fixed << setprecision(12) << w / sin(a) * w;
  else {
    ans1 = x * x * tan(a);
    ans2 = y * y * tan(a);
    cout << fixed << setprecision(12) << h * w - ans1 - ans2;
  }
}
