process.stdin.resume();
process.stdin.setEncoding();
process.stdin.on('data',function(chunk){


var line=chunk.split(" ").map(Number);
var a = line[0];
var b = line[1];

var d=Math.floor(a/b);
var r=a%b;
var f=(a/b).toFixed(5);

 
 console.log(d+" "+r+" "+f);


});