import Control.Applicative
import Control.Monad
import Data.Array
import Data.Array.ST
import Data.Char
import Data.List
import qualified Data.Map as M
import qualified Data.Set as S
import Text.Printf

readInts :: IO [Int]
readInts = map read . words <$> getLine

main :: IO ()
main = do
  [a,b,c] <- map read . words <$> getLine
  let (s,l,h) = solve a b c
  print s
  print l
  print h

solve :: Double -> Double -> Double -> (Double, Double, Double)
solve a b c = (s, l, h)
 where
  s = 0.5 * a * b * sin th
  l = a + b + sqrt (a^2 + b^2 - 2 * a * b * cos th)
  h = s * 2 / a
  th = c * pi / 180

