'use strict';

(function() {
    var fs = require('fs');
    var contents = fs.readFileSync('/dev/stdin', 'utf-8');

    var ab = function(contents) {
        var line = contents.trim().split(" ");
        var a = parseInt(line[0]);
        var b = parseInt(line[1]);

        var d = Math.floor(a / b);
        var r = a % b;
        var f = a / b;
        console.log(d + " " + r + " " + f);
    }

    ab(contents);
}());