module Main where

import Numeric
import Data.Functor

main :: IO ()
main =  do
  { [a,b,ab] <- getDoubles
  ; let ang = pi * ab / 180
  ; let sine = sin ang
  ; let cosine = cos ang
  ; let h = b * sine
  ; let s = a * h / 2
  ; let a2pb2 = a^2 + b^2
  ; let ab2 = 2 * a * b
  ; let c2 = a2pb2 - ab2 * cosine
  ; let c = sqrt c2
  ; putStr $ unlines $ map (flip (showFFloat Nothing) "") [s,a+b+c,h]
  }

getDoubles :: IO [Double]
getDoubles = map read . words <$> getLine