import scala.io.StdIn.readLine

object Main {
	def main(args: Array[String]) = {
		val Array(a, b) = scala.io.StdIn.readLine.split(" ").map(_.toLong)
    println( f"${a/b}%d ${a%b}%d ${a.toDouble/b.toDouble}%.5f" )
  }
}