import Text.Printf

calc_c :: Double -> Double -> Double -> Double
calc_c a b angle_c = sqrt $ a^^2 + b^^2 - 2*a*b*(cos $ ang2rad angle_c)

calc_h :: Double -> Double -> Double
calc_h b angle_c = b * (sin $ ang2rad angle_c)

ang2rad :: Double -> Double
ang2rad = (*) (pi / 180)

calc_s :: Double -> Double -> Double -> Double
calc_s a b angle_c = (a * calc_h b angle_c) / 2

calc_l :: Double -> Double -> Double -> Double
calc_l a b angle_c = a + b + calc_c a b angle_c

main :: IO ()
main = do
    [a, b, angle_c] <- getLine >>= return . map (\n -> read n :: Double) . words
    printf "%.5f %.5f %.5f" (calc_s a b angle_c) (calc_l a b angle_c) (calc_h b angle_c)

