const input = require('fs').readFileSync('/dev/stdin', 'UTF-8');

const calculator = input => {
  const [a, b] = input.split(' ').map(Number);

  const d = Math.floor(a / b);
  const r = a % b;
  const s = (a / b).toFixed(8);

  console.log([d, r, s].join(' '));
};

calculator(input);

