object Main {
  def main (args: Array[String]) {
    var count:Int = 0
    val Array(v1, v2) = scala.io.StdIn.readLine.split(" ").map(_.toLong)
    println( f"${v1/v2}%d ${v1%v2}%d ${v1.toFloat/v2.toFloat}%.5f" )
  }
}