object Main {
  
  def main(args: Array[String]) {
     val list = readLine().split(" ").map(_.toInt)
     val (a, b) = (list(0), list(1))
     
     val d = a / b
     val r = a % b
     val f = a.asInstanceOf[Double] / b.asInstanceOf[Double]
     println(f"$d $r $f%.5f")
  }
}
