"use strict";

function Main(input) {
    var line=input.replace("\n","").split(" ").map(Number);
    var ans=Math.floor(line[0]/line[1])+" "+(line[0]%line[1])+" "+(line[0]/line[1])+"\n";
    console.log(ans);
}
    
function debug(){
	var input = document.getElementById("input").value;
	Main(input);
}

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