a, b, c = gets.split.map(&:to_i)
s = 0.5 * a * b * Math.sin(c * Math::PI / 180)
l = a + b + (a**2 + b**2 - 2 * a * b * Math.cos(c * Math::PI / 180)) **0.5
h = 2 * s / a
puts [s.round(5),l.round(5),h.round(5)]
