main = getLine >>= mapM_ print . (\[a,b,c] -> (a * b * (sin (rad c)) / 2) : (sqrt (a^2 + b^2 - 2 * a * b * cos (rad c)) + a + b) : (b * sin (rad c)) : []) . map read . words
  where rad c = pi * c / 180