import scala.io.StdIn
import Math.{sin,cos,pow,sqrt}
/**
  * AOJ
  */
object Main {

  def main(args: Array[String]): Unit = {
    val in = StdIn.readLine().split(" ").map(_.toDouble)
    val a = in(0)
    val b = in(1)
    val C = in(2)

    val RadinanC = Math.toRadians(C)
    val h = b * sin(RadinanC)
    val S = a * h / 2
    val L = a + b + sqrt(pow(a,2) + pow(b,2) - 2 * a * b * cos(RadinanC))

    println("%.8f".format(S))
    println("%.8f".format(L))
    println("%.8f".format(h))
  }
}