import           Control.Applicative

main :: IO ()
main = do
    [a, b, c] <- fmap read . words <$> getLine :: IO [Double]
    let r = (pi / 180) * c
    let h = b * sin r
    let s = a * h / 2
    let d = sqrt $ a ^ 2 + b ^ 2 - 2 * a * b * cos r
    print s
    print (a + b + d)
    print h

