function Main(input) {
  let args = input
    .trim()
    .split(" ")
    .map((x) => parseInt(x, 10));
  let a = args[0];
  let b = args[1];

  let f = (a / b).toFixed(5);
  let d = parseInt(f, 10);
  let r = a % b;
  console.log(d + " " + r + " " + f);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));
