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

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

puts s
puts l
puts h