import scala.io.StdIn

/**
  * AOJ
  */
object Main {

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