object Main extends App {
  val in = readLine.split(' ').map(_.toInt)
  val a = in(0)
  val b = in(1)
  val C = in(2).toRadians

  val c = math.sqrt(a*a + b*b - 2*a*b*math.cos(C))

  val L = a + b + c;

  val h = b * math.sin(C)

  val S = a * h / 2;

  println(S)
  println(L)
  println(h)
}

