import Control.Applicative
import Text.Printf

main :: IO ()
main = do
  xs <- map read . words <$> getLine
  let [s, c, h] = calc xs
  printf "%.8f\n%.8f\n%.8f\n" s c h

calc :: [Float] -> [Float]
calc [a, b, th] = [s, (a + b + c), h]
  where
    th' = th * pi / 180
    s = 0.5 * a * b * sin th'
    c = sqrt (a^2 + b^2 - 2 * a * b * cos th')
    h = b * sin th'

