import Text.Printf

toRad d = pi * d / 180
height b degC = b * sin (toRad degC)
cosf a b degC = sqrt $ a^2 + b^2 - 2 * a * b * cos (toRad degC)
area a b degC = a * (height b degC) / 2

main = do
  [a, b, degC] <- return . map (\x -> read x :: Double) . words =<< getLine
  let h = height b degC
  putStrLn $ printf "%.08f" $ area a b degC
  putStrLn $ printf "%.08f" $ a + b + (cosf a b degC)
  putStrLn $ printf "%.08f" h
  