var std = process.stdin;
std.resume();
std.setEncoding('utf8');
std.on('data', function (chunk) {
    var data = chunk.replace(/\n/, '').split(' ').map(Number);
    
    console.log(
        Math.floor(data[0] / data[1]) + " " +
        data[0] % data[1]  + " " +
        (data[0] / data[1]).toFixed(6)
    );
});