const input = require('fs').readFileSync('/dev/stdin', 'utf8');
const dataStrings = input.split(' ');
const a = Number(dataStrings[0])
const b = Number(dataStrings[1])
const d = Math.floor(a/b);
const r = a % b;
const f = (a/b).toFixed(5);

console.log(d + ' ' + r + ' ' + f);
