let pi = 4. *. atan 1.;;
let f a b c =
  let rad c = c *. pi /. 180. in
  let h = b *. (sin (rad c)) in
  let s = a *. h /. 2. in
  let l = a +. b +. sqrt( (a -. b *. (cos (rad c))) ** 2. +. h ** 2. ) in
  Printf.printf "%f %f %f\n" s l h;;

let () = Scanf.scanf "%f %f %f\n" f;;