a, b, deg = STDIN.gets.split.map(&:to_i)
rad = deg * Math::PI / 180.0
puts "%.8f\n%.8f\n%.8f" % [
  0.5 * a * b * Math.sin(rad),
  a + b + (a ** 2 + b ** 2 - 2 * a * b * Math.cos(rad)) ** 0.5,
  b * Math.sin(rad)
]