fun main(args: Array<String>) {
    val inputs = readLine()?.split(" ")?.map { it.toLong() } ?: return
    val div = inputs[0] / inputs[1]
    val mod = inputs[0] % inputs[1]
    val flo: String
    if (mod != 0L) {
        flo = String.format("%1$.6f", inputs[0].toDouble() / inputs[1].toDouble())
    }else {
        flo = "${inputs[0] / inputs[1]}"
    }
    println("$div $mod $flo")
}
