import scala.math.{cos, sin, sqrt, pow, Pi}

object Main extends App{
  val sc = new java.util.Scanner(System.in)
  val a, b, C = sc.nextDouble
  val t = C * Pi / 180
  val S = a * b * sin(t) / 2
  val c = sqrt(pow(a, 2) + pow(b, 2) - 2 * a * b * cos(t))
  val L = a + b + c
  val h = b * sin(t)
  println(S)
  println(L)
  println(h)
}