import scala.io.StdIn

object Math extends App {

  val Array(a, b, c) = StdIn.readLine().split(' ').map(_.toDouble)
  val rad = scala.math.toRadians(c)
  val s = (scala.math.sin(rad) * a * b ) / 2
  val h = scala.math.sin(rad) * b
  // 余弦定理
  val x = scala.math.sqrt(a*a + b*b - 2*b*a*scala.math.cos(rad)) + a + b
  
  println(f"$s%.8f")
  println(f"$x%.8f")
  println(f"$h%.8f")
  
}
