input = gets.split(" ")
a = input[0].to_f
b = input[1].to_f
c = input[2].to_f

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