(function(stdin){
	var lines = stdin.toString().split('\n')[0].split(' ').map(Number);
	var resolt = (function(a,b){
		return [~~(a / b),(a % b),(a/b).toPrecision(5)];
	}(lines[0],lines[1])).join(' ');
	console.log(resolt);
}(require('fs').readFileSync('/dev/stdin','utf8')));