object Main {
    def main(args : Array[String]) : Unit = {
        val input = io.StdIn.readLine().split(" ").map(_.toInt)
        val a = input(0) / input(1)
        val b = input(0) % input(1)
        val c : Double = input(0).toDouble / input(1).toDouble
        println(a + " " + b + " " + c)
    }
}