function Main(input) {
    input = input.split("\n");
    for (i=0; i < input.length-1; i++) {
        tmp = input[i].split(" ")
        var a = parseInt(tmp[0])
        var b = parseInt(tmp[1])
        var d = Math.floor(a / b)
        var r = a % b
        var f = Math.floor(a / b * Math.pow(10, 5)) / Math.pow(10, 5)
        console.log(d, r, f)
    }
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));
