import Control.Applicative
import Text.Printf

cir :: Double -> Double -> Double -> Double
cir a b theta = a + b + sqrt (a * a + b * b - 2 * a * b * cos theta)

area :: Double -> Double -> Double -> Double
area a b theta = (a * b * sin theta) / 2


height :: Double -> Double -> Double
height b theta = b * sin theta


solver :: Double -> Double -> Double -> (Double, Double, Double)
solver a b c = (cir a b theta, area a b theta, height b theta)
  where theta = (c * pi) / 180.0


main :: IO()
main = do
  (a:b:c:_) <- map (read :: String -> Double) . words <$> getLine
  let (c', a', h') = solver a b c
  printf "%.8f\n%.8f\n%.8f\n" a' c' h'