let content = '';
process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', buf => {
  content += buf;
});
process.stdin.on('end', () => {
  const [a, b] = content
    .trim()
    .split(' ')
    .map(n => parseInt(n, 10));
  
  const d = Math.floor(a / b);
  const r = a % b;
  const f = a / b;
  console.log("%d %d %s", d, r, f.toFixed(6));
});
