object Main {
  def main(args: Array[String]): Unit = {
    val ab = io.StdIn.readLine().split(" ").map(_.toInt)
    val a = ab(0)
    val b = ab(1)

    val d = a / b
    val r = a - b * d
    val f = a / b.toDouble

    println(f"$d $r $f%.5f")
  }
}