import scala.io.Source
import scala.math.{ sin, cos, sqrt, Pi }

object Main extends App {
  val Array(bottom: Double, slope: Double, angle: Double) = Source.fromFile(args(0)).getLines.next.split(" ").map(_.toDouble)

  def toRadians(angle: Double) = {
    angle * (math.Pi / 180)
  }

  val h = sin(toRadians(angle)) * slope
  val area = bottom * h / 2
  val length = bottom + slope + sqrt(bottom * bottom + slope * slope - 2 * bottom * slope * cos(Pi * angle / 180))

  println(area)
  println(length)
  println(h)
}