line = STDIN.gets.chomp().split(" ")
a = line[0].to_i
b = line[1].to_i
c = line[2].to_i

h = b * Math.sin(c * Math::PI / 180.0).to_f
s = a * h / 2.to_f


l = (a + b + Math.sqrt((b * Math.cos(c * Math::PI / 180.0) - a) * (b * Math.cos(c * Math::PI / 180.0) - a) + h * h)).to_f

puts s
puts l
puts h