function main(input) {
    var data = input.split(' ');
    var a = parseInt(data[0]);
    var b = parseInt(data[1]);
    var d = Math.floor(a / b);
    var r = a % b;
    var f = (a / b).toFixed(5);
    var output = [d, r, ,f].join(' ');
    console.log(output);
}

process.stdin.resume();
var input = '';  
process.stdin.setEncoding('utf-8');
process.stdin.on('data', function(chunk) {
  input += chunk;
});
process.stdin.on('end', function() {
  main(input);
});