import Control.Monad
import Control.Applicative
import Data.Functor
import Data.List
import Data.Char



main = do
    [a, b, c] <- map read . words <$> getLine
    let rad = c * pi / 180
    let s = a * b * sin (rad) / 2
    let l = a + b + sqrt (a**2 + b**2 - 2 * a * b * cos rad)
    mapM_ print [s, l, s * 2 / a]