object Main extends App {
	override def main(args: Array[String]) = {
		val sc = new java.util.Scanner(System.in)
		
		val a,b = sc.nextInt()	
		val t = new TwoInt(a,b)
		
		println(f"${t.d}%d ${t.r}%d ${t.f}%f")
	}
	
}

class TwoInt(val a : Int, val b: Int){
	val d = a/b
	val r = a%b
	val f = a.asInstanceOf[Double]/b.asInstanceOf[Double]
}