a,b,c = gets.split(" ").map{|x|x.to_f}
p a * Math.sin(c * Math::PI / 180) * b / 2
p a + b + (a**2 + b**2 - 2 * a * b * Math.cos(c * Math::PI / 180))**0.5
p (a * Math.sin(c * Math::PI / 180) * b / 2) * 2 / a