import scala.io.StdIn.readLine
object Main extends App {
  val in = readLine().split(" ").map(s => s.toInt)
  val div:Int = in(0) / in(1)
  val rem:Int = in(0) % in(1)
  val divD:Double = in(0).toDouble / in(1).toDouble
  print("%d %d %.10f\n".format(div, rem, divD))
}