/**
  * http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_10_B&lang=jp
  * Math Functions - Triangle
  */
object Main {
  def main(args: Array[String]): Unit = {
    val Array(a, b, degreeC) = io.StdIn.readLine().split(" ").map(_.toInt)
    val radianC = degreeC * math.Pi / 180.0
    val c = math.sqrt(a * a + b * b - 2.0 * a * b * math.cos(radianC))
    val el = a + b + c
    val s = el / 2.0
    val es = math.sqrt(s * (s - a) * (s - b) * (s - c))
    val h = 2.0 * es / a
    println(es)
    println(el)
    println(h)
  }
}