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

    println(f"${a / b} ${a % b} ${a.toDouble / b}%.5f")
  }
}
