#include <bits/stdc++.h>
using namespace std;
int main() {
  double pi = acos(-1), w, h, a;
  cin >> w >> h >> a;
  cout.setf(cout.fixed);
  cout.precision(10);
  if (a == 0 || a == 180) {
    cout << w * h;
    return 0;
  }
  if (w < h) swap(w, h);
  if (a > 90) a = 180 - a;
  a *= pi / 180;
  double x1 = w / 2.0, y1 = h / 2.0, x2, y2;
  x2 = x1 * cos(a) - y1 * sin(a);
  y2 = x1 * sin(a) + y1 * cos(a);
  double x3 = w / 2.0, y3 = -h / 2.0, x4, y4;
  x4 = x3 * cos(a) - y3 * sin(a);
  y4 = x3 * sin(a) + y3 * cos(a);
  double s = w * h;
  if (y4 < y1) {
    double h1 = abs(y2 - y1), s1 = h1 * h1 / sin(a) / sin(pi / 2.0 - a);
    double h2 = abs(x4 - x1), s2 = h2 * h2 / sin(a) / sin(pi / 2.0 - a);
    s = s - s1 - s2;
  } else
    s = h * h / sin(a);
  cout << s;
  return 0;
}
