main = getLine >>= mapM_ print . itp1_10_b . map read . words
itp1_10_b [a,b,c] = [s,l,h]
 where
  s = a * h / 2.0
  l = a + b + (sqrt $ (a - (cos (c * pi / 180.0) * b))^2 + h^2)
  h = sin (c * pi / 180.0) * b