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


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

 console.log(a / b); 
 console.log(a % b);
 console.log(Math.floor(a % b).toFixed(5));


});