var input = require('fs').readFileSync('/dev/stdin', 'utf8');
var sp = input.split(" ").map(Number);
console.log( Math.floor( sp[0] / sp[1] ) + " " + ( sp[0] % sp[1] ) + " " + ( sp[0] / sp[1] ).toFixed(5) );