include Math
a,b,theta = gets.chomp.split(" ").map{|x| x.to_f}
r = PI * theta / 180.0 
c = (a**2 + b**2 - 2*a*b*cos(r))**0.5
h = b*sin(r)
s = a*h/2
printf("%f\n",s)
printf("%f\n",a+b+c)
printf("%f\n",h)
