a,b,deg = gets.split.map(&:to_f)
puts "#{sprintf("%.4f",0.5*a*b*Math.sin(deg/180.0 * Math::PI))}"
puts "#{sprintf("%.4f",a+b+Math::sqrt(a**2+b**2-2*a*b*Math.cos(deg/180.0 * Math::PI)))}"
puts "#{sprintf("%.4f",(0.5*a*b*Math.sin(deg/180.0 * Math::PI))/(a/2))}"
