#include <bits/stdc++.h>
using namespace std;
double x, y, dist, ang;
int w, h;
double yeni[4][2], dot[4][2];
double oldsin, oldcos;
double area;
int main() {
  scanf("%d %d %lf", &w, &h, &ang);
  if (ang == 180.0 || ang == 0.0) {
    printf("%lf\n", (double)w * h);
    return 0;
  }
  if (w < h) swap(w, h);
  if (ang == 90.0) {
    printf("%lf", (double)h * h);
    return 0;
  }
  x = w / 2.0;
  y = h / 2.0;
  if (ang > 90) ang = 180 - ang;
  ang = ang * M_PI / 180.0;
  double egimaci = atan2(y, x);
  dist = sqrt(x * x + y * y);
  yeni[3][0] = x * cos(ang) + y * sin(ang);
  yeni[0][1] = x * sin(ang) + y * cos(ang);
  if (ang >= egimaci * 2) {
    area = (1.0 / cos(M_PI / 2.0 - ang)) * h * h;
  } else {
    area = 1.0 * w * h;
    ang = (M_PI / 2.0) - ang;
    double diff = (yeni[3][0] - x);
    area -= ((diff / sin(ang)) * (diff / cos(ang)));
    diff = yeni[0][1] - y;
    area -= ((diff / sin(ang)) * (diff / cos(ang)));
  }
  printf("%.10lf", area);
}
