inputs = gets.strip.split(" ").map{|i| i.to_f}
a, b, c = inputs[0], inputs[1], inputs[2]
rad_c = (Math::PI / 180.0) * c 
d = Math.sqrt(a**2 + b**2 - 2*a*b*Math.cos(rad_c))
s = 0.5 * a * b * Math.sin(rad_c)
l = a + b + d
h = 2*s / a
puts s.floor(4)
puts l.floor(4)
puts h.floor(4)
