function Main(input) {
  var ab = input.split(" ");
  var f = (ab[0] / ab[1]).toFixed(5);
  var d = Math.floor(f);
  var r = ab[0] - ab[1] * d;
  console.log(d + ' ' + r + ' ' + f);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
