import Text.Printf
main = do
  getLine >>= mapM_ (printf "%.5f\n") . calc . map read . words

calc :: [Double] -> [Double]
calc [a,b,c] = let theta = c * pi / 180.0 in
  [a*b*sin(theta)/2,
   a + b + sqrt(a^2 + b^2 - 2*a*b*cos(theta)),
   b*sin(theta)]