import Control.Applicative

main = do (a:b:c:_) <- map read . words <$> getLine
          let h = b * sin (pi*c/180)
              s = a*h/2
              l = a + b + sqrt (a**2 + b**2 - 2*a*b*(cos (pi*c/180)))
          putStr . unlines . map show $ [s,l,h]