main = do
  [a,b,deg] <- (return . map (read::String->Double) . words) =<< getLine
  let rad = deg * pi / 180.0
  print $ a * b * (sin rad) * 0.5
  print $ a + b + (a**2 + b**2 - 2.0*a*b*(cos rad))**0.5
  print $ b * (sin rad)
