let () =
  let a,b,ang = Scanf.scanf "%f %f %f\n" (fun x y z -> x,y,z) in
  let pi = 4. *. atan 1. in
  let rad = pi*.ang/.180. in
  let h = b*.(sin rad) in
  let s = (1./.2.) *. a*.h in
  let c = sqrt (a ** 2. +. b ** 2. -. 2.*.a*.b*.(cos rad)) in
  Printf.printf "%f\n%f\n%f\n" s (a+.b+.c) h