MODE = "stdio"
require 'matrix'
include Math
line = Array.new

if(defined? MODE)
  line = STDIN.read.split("\n")
else
  tmp = '4 3 90'.split("\n")
  tmp.each{|s|
    line << s.strip
  }
end


a,b,c = line[0].split(" ").map(&:to_f)
r = c*PI/180.0
h=b*sin(r)
s = a*h*0.5
d = (a**2+b**2-2*a*b*cos(r))**0.5
l = a+b+d
printf("%.10f\n%.10f\n%.10f\n",s,l,h)