function Main(input){
  const [a, b] = input.split(' ').map(Number);
  let d, r, f;
  d = Math.floor(a / b);
  r = Math.floor(a % b);
  f = (a / b).toFixed(8);
  console.log(d + ' ' + r + ' ' + f);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
