import Control.Applicative
import Text.Printf

degToRad :: Floating a => a -> a
degToRad d = d * pi / 180

s :: Floating a => a -> a -> a -> a
s a b c = 0.5 * a * b * (sin . degToRad) c

l :: Floating a => a -> a -> a -> a
l a b c = a + b + sqrt (a ^ 2 + b ^ 2 - 2 * a * b * (cos . degToRad) c)

h :: Floating a => a -> a -> a
h b c = b * (sin . degToRad) c

main :: IO ()
main = do
    [a, b, c] <- (map (read :: String -> Double) . words) <$> getLine
    printf "%.8f\n%.8f\n%.8f\n" (s a b c) (l a b c) (h b c)