let sec_low_cos a b rad =
  let sqr x = x *. x in
  sqrt (sqr a +. sqr b -. 2.*.a*.b*.(cos rad))

let area a height =
  (1./.2.) *. a*.height

let height b rad =
  b*.(sin rad)

let () =
  let a,b,ang = Scanf.scanf "%f %f %f\n" (fun x y z -> x,y,z) in
  let pi = 4.0 *. atan 1.0 in
  let rad = pi*.ang/.180. in
  let h = height b rad in
  let s = area a h in
  let l = a+.b+.(sec_low_cos a b rad) in
  Printf.printf "%f\n%f\n%f\n" s l h