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