a, b, c = gets.split.map(&:to_f)

c = 2 * Math::PI * c / 180
s = a * b * sin(c) / 2.0
l = a + b + Math.sqrt(a ** 2 + b ** 2 - 2 * a * b * cos(c))
h = b * sin(c)

printf("%.8f\n", s)
printf("%.8f\n", l)
printf("%.8f\n", h)
