import scala.io.StdIn

object Main{
  def main(args: Array[String]){
    val list = StdIn.readLine.split(" ").toList.map(_.toInt)

    printf(s"${list(0) / list(1)} ${list(0) % list(1)} ${list(0).toDouble / list(1).toDouble}\n")
  }
}