import Control.Applicative
import Control.Monad
import Numeric

main = do
    (a:b:angC':_) <- (map read.words) <$> getLine :: IO [Double]
    let angC = angC' * pi / 180.0
    let s = ( a * b * sin angC ) / 2.0
    let l = a + b + sqrt( a * a + b * b - a * b * cos angC )
    let h = b * sin angC
    putStrLn $ showFFloat (Just 7) s ""
    putStrLn $ showFFloat (Just 7) l ""
    putStrLn $ showFFloat (Just 7) h ""
    