import Text.Printf

dist [x1,y1,x2,y2] = sqrt $ (x2-x1)**2 + (y2-y1)**2

main1 = do
  points <- fmap (map read . words) getLine :: IO [Double]
  printf "%.8f\n" (dist points)

degreeToRadian deg = pi * deg / 180

cosine a b rad = sqrt $ (a**2) + (b**2) - (2*a*b*(cos rad))

solve2 [a,b,deg] = (s,l,h)
  where
    rad = degreeToRadian deg
    h = b * (sin rad)
    s = a * h / 2
    l = a + b + (cosine a b rad)

main = do
  abc <- fmap (map read . words) getLine :: IO [Double]
  let (s,l,h) = solve2 abc
  printf "%.8f\n" s
  printf "%.8f\n" l
  printf "%.8f\n" h

