import Text.Printf

main :: IO ()
main = do
    [a,b,angC] <- fmap (map read . words) getLine :: IO [Double]
    let radC = angC / 180 * pi
        c    = sqrt $ a^2 + b^2 - (2 * a * b * cos radC)
        s    = 0.5 * a * b * sin radC
        l    = a + b + c
        h    = s * 2 / a
    mapM_ (printf "%.5f\n") [s,l,h]
