a, b, deg = gets.split.map(&:to_f)
rad = deg * Math::PI / 180

h = Math.sin(rad) * b
s = a * h / 2
t = h / Math.tan(rad)
c = Math.sqrt((a - t) ** 2 + h ** 2)

puts sprintf("%.6f", s)
puts sprintf("%.6f", a + b + c)
puts sprintf("%.6f", h)