def pr(f)
  printf "%f\n",f
end
  a,b,c=$stdin.gets.split.map(&:to_f)
  rad=c*Math::PI/180
  pr (1/2.0)*a*b * Math.sin(rad)
  pr a+b + Math.sqrt( a**2+b**2 - 2*a*b * Math.cos(rad) )
  pr b * Math.sin(rad)
