object Main {
  def main(args: Array[String]): Unit = {
    val scanner = new java.util.Scanner(System.in)
    val a, b = scanner.nextDouble
    val ca = math.toRadians(scanner.nextDouble)

    val h = b * math.sin(ca)
    val s = a * h / 2
    val c = math.sqrt(a * a + b * b * math.sin(ca) * math.sin(ca))
    println(f"$s%.5f")
    println(f"${a + b + c}%.5f")
    println(f"$h%.5f")
  }
}

