main = putStr . unlines . map show . sovle . map (read::String->Double) . words =<< getLine
  where
    sovle [a,b,theta] = [s, l, h]
      where
        t=theta/180.0*pi
        h=b*sin t
        s=0.5*a*h
        c=sqrt (a*a+b*b-2.0*a*b*cos t)
        l=a+b+c
