#include <bits/stdc++.h>

using namespace std;

int main()
{
  double a, b, C, S = 0, L = 0, h = 0, rad;

  scanf("%lf %lf %lf", &a, &b, &C);

  rad = C * acos(-1) / 180;

  h = b * sin(rad);

  S = a * h / 2;

  L = sqrt(pow(a, 2) + pow(b, 2) - (2 * a * b * cos(rad))) + a + b;

  printf("%lf\n%lf\n%lf\n", S, L, h);
}
