import Text.Printf

main = do
    ss <- getLine
    let (a:b:c:_) = map (\x -> read x :: Double) $ words ss
    let s = area a b c
    let l = circumference a b c
    let h = height a b c
    printf "%.8f\n" s
    printf "%.8f\n" l
    printf "%.8f\n" h

area a b c = (1/2) * a * b * (sin $ c * pi / 180)
left a b c = sqrt $ a^2 + b^2 - 2 * a * b * (cos $ c * pi / 180)
circumference a b c = a + b + (left a b c)
height a b c = (area a b c) * 2 / a

