#include <bits/stdc++.h>
using namespace std;
const double PI = 3.14159265358979323846;
signed main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long T = 1;
  while (T--) {
    double n, m, a;
    cin >> n >> m >> a;
    if (n > m) swap(n, m);
    a = min(a, 180 - a) * PI / 180;
    double s = sin(a);
    double c = cos(a);
    double t = tan(a);
    double ans;
    if ((1 + c) / m < s / n) {
      ans = n * n / s;
    } else {
      double p = (n + m) * s / (1 + c + s);
      double x = (n - p) / (1 + c - s);
      double y = (m - p) / (1 + c - s);
      ans = n * m - ((x * x + y * y) * c * s);
    }
    cout << fixed << setprecision(6) << ans << '\n';
  }
  return 0;
}
