import Numeric

main :: IO ()
main = getLine >>= mapM_ putStrLn . map myShow . slh . map read . words
  where slh [a, b, deg] = [a * b * sin rad / 2, a + b + sqrt (a ** 2 + b ** 2 - 2 * a * b * cos rad), b * sin rad] where rad = deg / 180 * pi
        myShow f = showFFloat Nothing f ""