fun computeTriangleArea(a: Double, b: Double, c: Double): Double {
    val  s = (a + b + c) / 2.0
    return Math.sqrt(s * (s - a) * (s - b) * (s - c))
}


fun computeTriangleHeight(a: Double, area: Double): Double {
    return 2 * area / a
}


fun main(args: Array<String>) {
    val (a, b, angle) = readLine()!!.split(" ").map(String::toDouble)
    val c = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(angle)))
    val area = computeTriangleArea(a, b, c)
    val length = a + b + c
    val height = computeTriangleHeight(a, area)
    println("$area")
    println("$length")
    println("$height")
}

