/**
  * http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_4_A
  * ?????????
  * ???????????´??° a ??¨ b ?????????????????§?????\?????????????¨??????????????????°?????????????????????????????????
  * a ?? b ??? d (??´??°)
  * a ?? b ????????? ??? r (??´??°)
  * a ?? b ??? f (???????°???°?????°)
  */
object Main {
  def main(args: Array[String]): Unit = {
    val array = io.StdIn.readLine().split(" +").map(_.toInt)
    val (a, b) = array match {
      case Array(x, y) => (x, y)
    }
    val d = a / b
    val r = a % b
    val f = a.toDouble / b.toDouble
    println(f"$d $r $f%.5f")
  }
}