function main(input){
    let nums = input.split(" ");
    let a1 = (nums[0]/nums[1])|0;
    let a2 = (nums[0]%nums[1]);
    let a3 = ((parseInt(Math.round((parseFloat(nums[0])/parseFloat(nums[1]))*10e7)))/10e7);
    if(a3.toString().indexOf("e-")!==-1){
        let digit = a3.toString().split("e-")[1];
        a3 = a3.toFixed(digit);
    }
    console.log(a1+" "+a2+" "+a3);

}

main(require("fs").readFileSync("/dev/stdin","utf-8"));
