#include <bits/stdc++.h>
using namespace std;
int main() {
  double pi = 2 * acos(0.0);
  double w, h, a;
  cin >> w >> h >> a;
  a = min(a, 180 - a);
  if (a == 90) {
    printf("%.9f", min(h, w) * min(h, w));
    return 0;
  } else if (a == 0) {
    printf("%.9f", w * h);
    return 0;
  }
  a = a * pi / 180;
  double x, y;
  if (w < h) swap(w, h);
  if (atan2(h, w) * 2 > a) {
    y = h * sin(a) - w * (1 + cos(a));
    y /= (sin(a) * sin(a) - (1 + cos(a)) * (1 + cos(a)));
    x = w - y * (1 + cos(a));
    x /= sin(a);
    printf("%.9f", h * w - (x * x + y * y) * cos(a) * sin(a));
  } else {
    printf("%.9f", h * h / sin(a));
  }
  return 0;
}
