def solve(a, b, angle)
  ang = 1.0 * angle / 180 * Math::PI
  c = Math.sqrt(a ** 2 + b ** 2 - 2 * a * b * Math.cos(ang))
  area = 0.5 * a * b * Math.sin(ang)
  h = b * Math.sin(ang)
  [area, a + b + c, h]
end

def main
  a, b, ang = gets.split(/\s/).map(&:to_i)
  puts solve(a, b, ang)
end

main