import scala.io.StdIn.readLine

object Main {
  def main(args: Array[String]) {
    val Array(a, b) = readLine().split(" ").map(_.toInt)
    println(s"${a / b} ${a % b} ${a.toDouble / b.toDouble}")
  }
}