import Text.Printf

main = getLine >>= show' . solve . read'
  where
    show' (a, b, c) = putStrLn $ printf "%.9f %.9f %.9f" a b c
    solve [a, b, cDeg] = (area, len, height)
      where
        height = 2 * area / a
        len = a + b + c
        area = a * b * (sin cRad) / 2
        c = sqrt $ (a ** 2) + (b ** 2) - 2 * a * b * (cos cRad)
        cRad = (2 * pi * cDeg) / 360
    read' = map read . words :: String -> [Double]

