process.stdin.resume();
process.stdin.setEncoding('utf8');
// Your code here!
function main(lines) {
    const input = lines.split(' ').map(function(val){return parseFloat(val);})
    const a = input[0]
    const b = input[1]
    console.log(parseInt(Math.floor(a/b),10) + ' ' + parseInt(Math.floor(a%b),10) + ' ' + (a/b).toFixed(5))

}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));
