#include <bits/stdc++.h>
using namespace std;
using std::string;
int main() {
  long long w, h, a;
  cin >> w >> h >> a;
  double area = w * h;
  if (a == 0 || a == 180) {
    printf("%.8lf", area);
    exit(0);
  }
  if (a == 90) {
    area = min(w, h);
    area *= area;
    printf("%.8lf", area);
    exit(0);
  }
  if (w < h) swap(w, h);
  double al = a;
  al /= 180;
  al *= 3.1415926535897932384626433832795028841971693993751;
  double y = (double)(w - (h * sin(al)) / (1 + fabs(cos(al))));
  y /= (1 / fabs(tan(al)) + 1 / sin(al) - (sin(al) / (1 + fabs(cos(al)))));
  double x = (double)(h - y) / (1 + fabs(cos(al)));
  if (x > 0)
    area -= (y * y / fabs(tan(al)) + x * x * sin(al) * fabs(cos(al)));
  else
    area = h * h / sin(al);
  printf("%.8lf", area);
}
