include Math
def f(a, b, c)
  return (0.5 * a * b * sin(g(c))), (a ** 2 + b ** 2 - 2 * a * b * cos(g(c))) ** 0.5 + a + b, b * sin(g(c))
end
def g(c)
  return c * PI / 180
end
puts f(*gets.split(" ").map(&:to_i))
#f(*gets.split(" ").map(&:to_i)).each{|i|puts sprintf("%.4f", i)}