var input = require('fs').readFileSync('/dev/stdin', 'utf8').split(" ").map(Number);
console.log(function(a, b) {
    return [Math.floor(a / b), a % b, (a / b).toFixed(5)];
  } (input[0], input[1]).join(' '));