input = STDIN.gets.split(' ')
a = input[0].to_f
b = input[1].to_f
c = input[2].to_f * (Math::PI / 180)

s = ((a * b * Math.sin(c)) / 2).to_f
l = (a + b + Math.sqrt(a*a + b*b - Math.cos(c))).to_f
h = (b * Math.sin(c)).to_f

puts s
puts l
puts h