var ab = require('fs').readFileSync('/dev/stdin', 'utf8').split(' ').map(Number);
var a = ab[0];
var b = ab[1];

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

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