object Main {
  def main(args: Array[String]): Unit = {
    val Array(a, b, d, _*) = io.StdIn.readLine().split(" ").map(_.toDouble)

    val rad = d / 180 * Math.PI
    val h = b * Math.sin(rad)
    val s = a * h / 2
    val c = {
      val c2 = a * a + b * b - 2 * a * b * Math.cos(rad)
      Math.sqrt(c2)
    }

    println(f"$s%.8f")
    println(f"${a + b + c}%.8f")
    println(f"$h%.8f")
  }
}