object Main{
    def main(args: Array[String]): Unit ={
        var in = scala.io.StdIn.readLine().split(" ").map(_.toInt)
        val a = in(0) / in(1)
        val b = in(0) - a * in(1)
        val c = in(0).toDouble / in(1)
        println(a + " " + b + " " +f"$c%.5f")
    }
}