#include <bits/stdc++.h>
using namespace std;
const double pi = 2 * acos(0.0);
double i, j, k, n, m, angle;
double ang;
int main() {
  cin >> n >> m >> ang;
  if (ang == 90) {
    cout << setiosflags(ios::fixed) << setprecision(8) << min(n, m) * min(n, m)
         << endl;
    return 0;
  }
  if (ang == 180 || ang == 0) {
    cout << setiosflags(ios::fixed) << setprecision(8) << n * m << endl;
    return 0;
  }
  if (ang > 90) ang = 180 - ang;
  angle = ang;
  double rad = angle * pi / 180.0;
  if (sin(rad) > 2 * (n * m / (n * n + m * m))) {
    double len = min(n, m) / sin(rad);
    cout << setiosflags(ios::fixed) << setprecision(8) << len * min(n, m)
         << endl;
    return 0;
  }
  double a1 = 1 + cos(rad), a2 = sin(rad);
  double b = (n * a2 - m * a1) / (a2 * a2 - a1 * a1);
  double a = (m * a2 - n * a1) / (a2 * a2 - a1 * a1);
  if (a < 0) a = -a;
  if (b < 0) b = -b;
  cout << setiosflags(ios::fixed) << setprecision(8)
       << (n * m - sin(2.0 * rad) * (a * a + b * b) / 2.0) << endl;
  return 0;
}
