import java.util.Scanner

fun main(args:Array<String>){
    val cin = Scanner(System.`in`)
    val a = cin.nextInt()
    val b = cin.nextInt()

    val d = a / b
    val r = a % b
    val f = a.toDouble() / b.toDouble()

    println("%d %d %5f".format(d,r,f))
}

