import scala.io.StdIn.readLine

object Main extends App {

  val input = readLine().split(" ").map(_.toInt)
  val (a, b) = (input(0), input(1))

  val d = a / b
  val r = a % b
  val f = "%.5f".format(a.toDouble / b.toDouble)

  val ans = s"$d $r $f"

  println(ans)
}

