

object Main extends App {
  override def main(args: Array[String]): Unit = {
    val input = io.StdIn.readLine.split(' ')

    val a = input(0).toInt
    val b = input(1).toInt
    val C = input(2).toInt

    val res = calc(a)(b)(C)
    println(res._1)
    println(res._2)
    println(res._3)
  }

  def calc: Int => Int => Int => (Double,Double,Double) = {
    a =>
      b =>
        C =>
          (a * b * Math.sin(rad(C)) / 2 , 
           a + b + len(a,b,Math.cos(rad(C))), 
           b * Math.sin(rad(C)))
  }
 
  def rad:Double => Double = _ * Math.PI/180
  def len:(Double,Double,Double) => Double 
        = (a,b,cosC) => Math.sqrt(a*a + b*b - 2*a*b*cosC)
  
}