include Math
a, b, C = gets.split.map(&:to_i)

rad = C * PI / 180.0

S = 0.5 * a * b * sin(rad)
h = b * sin(rad)
L = a + b + (h**2 + (a - (b * cos(rad)))**2 )**0.5

printf("%.4f\n", S)
printf("%.4f\n", L)
printf("%.4f\n", h)
