import           Control.Applicative
import           Control.Monad
import           Data.List

main :: IO ()
main = do
  [a,b,theta] <- map (read::String->Double) . words <$> getLine
  let t=theta/180.0*pi
  let h=b*sin t
  let s=0.5*a*h
  let c=sqrt (a*a+b*b-2.0*a*b*cos t)
  let l=a+b+c
  print s
  print l
  print h
