'use strict';
process.stdin.on('data', function(chunk) {
    var inputs = chunk.toString().trim();
    var cols = inputs.split(' ').map(Number);
    var a = cols[0];
    var b = cols[1];

    var a = Math.floor(a / b);
var b= a % b;
var c = (a / b).toFixed(5);

console.log(a + ' ' + b + ' ' + c);


});
process.stdin.resume();
process.stdin.setEncoding('utf8');