const main = (standardInput) => {
    const lengthList = standardInput.split(' ');
    const a = Number.parseInt(lengthList[0]);
    const b = Number.parseInt(lengthList[1]);
    const d = Math.floor(a/b);
    const r = a%b;
    const f = (a/b).toFixed(5);
    console.log(d + " "+ r + " " + f)
  }

main(require('fs').readFileSync('/dev/stdin', 'UTF-8'));

