import scala.io.StdIn

/**
  * AOJ
  */
object Main {

  def main(args: Array[String]): Unit = {
    val in = StdIn.readLine().split(" ").map(s => s.toInt)
    println((in(0) / in(1)) + " " + (in(0) % in(1)) + " " + (in(0).toDouble / in(1).toDouble))
  }
}