object Main {
  def main(args: Array[String]) {
    val sc = new java.util.Scanner(System.in)
    val a, b = sc.nextInt
    val d:Int = a / b
    val r:Int = a % b
    val f:Double = a.toDouble / b
    println("%d %d %f".format(d, r, f))

  }
}