import Control.Applicative
import Text.Printf

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

  printf "%.8f\n" s
  printf "%.8f\n" l
  printf "%.8f\n" h