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

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

puts s
puts l
puts h