include Math
a, b, c = gets.chomp.split(' ').map(&:to_f)
rad = (c/180)*PI
s = (a * b * sin(rad)/2).round(6)
l = (a + b + sqrt(a**2 + b**2 - 2*a*b*cos(rad))).round(6)
h = (b * sin(rad)).round(6)
puts s
puts l
puts h