import Math._
object Main extends App {
  val Seq(a, b, degc) = readLine.split(' ').map(_.toDouble).toList
  val radc = toRadians(degc)
  println(a * b * sin(radc) / 2)
  println(a + b + sqrt(a*a + b*b - 2*a*b*cos(radc)))
  println(b * sin(radc))
}
