object Main extends App {
  val scanner = new java.util.Scanner(System.in)

  val a = scanner.nextInt()
  val b = scanner.nextInt()
  val C = scanner.nextInt()
  val c = C / 360.0 * 2 * Pi
  
  val S = b * (a * sin(c)) / 2
  val L = a + b + sqrt(a*a + b*b - 2*a*b*cos(c))
  val h = b * sin(c)

  val outputs = Seq(S, L, h)

  outputs.foreach(println)
}