a, b, c = gets.split.map(&:to_i)
th = c / 360.0 * 2 * Math::PI
puts '%.8f' % (a * b * Math.sin(th) / 2.0)
puts '%.8f' % (a + b + Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(th)))
puts '%.8f' % (b * Math.sin(th))