import math._
object Main extends App {
    val Array(a, b, c) = io.StdIn.readLine.split(" ").map(_.toInt)
    val s = a * b * sin(Pi * c / 180) / 2
    println(s)
    println(a + b + sqrt(a * a + b * b - 2 * a * b * cos(Pi * c / 180)))
    println(2 * s / a)
}