import java.util.*

fun main(args: Array<String>) {
    val scanner = Scanner(System.`in`)
    val a = scanner.nextInt()
    val b = scanner.nextInt()
    val C = scanner.nextInt()

    val x = Math.cos(C.toDouble() / 180 * Math.PI) * b
    val h = Math.sin(C.toDouble() / 180 * Math.PI) * b
    val c = Math.sqrt(Math.pow(h, 2.toDouble()) + Math.pow(a - x, 2.toDouble()))

    val S = h * a / 2
    val L = a + b + c

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