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

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

