let str = require('fs').readFileSync('/dev/stdin', 'UTF-8').split(' ').map(Number);

const a = str[0];
const b = str[1];

const d = Math.floor(a / b);
const r = a % b;
const f = (a / b).toFixed(5);
console.log(d + ' ' + r + ' ' + f)
