import scala.io.StdIn.readLine

object Main extends App {
  val Array(a,b,c) = readLine.split(" ").map(_.toDouble)
  val h = b * Math.sin(c*Math.PI/180)

  println(a*h/2)
  println( a + b + Math.sqrt(a*a+b*b-2*a*b*Math.cos(c*Math.PI/180)) )
  println(h)

}