function Main(input){
	input=input.trim().split(" ");
	let a = parseInt(input[0], 10);
	let b = parseInt(input[1], 10);
	let d = a / b | 0;
	let r = a % b;
	let f = a / b;
	console.log("%d %d %d",d, r, f.toFixed(6));
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));

