import Control.Applicative
import Numeric
main = do{
    [a,b,c] <- map (read::String->Double) . words <$> getLine;
    putStrLn $ (show (a*b*sin(c*pi/180)/2)) ++ "\n" ++ (show (a+b+sqrt(a*a+b*b-2*a*b*cos(c*pi/180)))) ++ "\n" ++ (show (b*sin(c*pi/180)));
}