import Data.Functor( (<$>))
import Text.Printf( printf)

main = do
    [a,b,c] <- (read <$>) . words <$> getLine::IO [Double]
    let
	θ = pi * c/180

	s = a * h / 2
	l = a + b + sqrt (a^2 + b^2 - 2 * a * b * cos θ)
	h = b * sin θ

    printf "%.5f\n" s
    printf "%.5f\n" l
    printf "%.5f\n" h

