process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', function (chunk) {
    var input = chunk.split(" ");
    var output = "";
    var num = new Array();
    
    for(var i = 0; i < input.length; i++){
        num[i] = Number(input[i]);
    }
    
    var ans1 = Math.floor(num[0]/num[1]);
    var ans2 = num[0] % num[1];
    var ans3 = num[0] / num[1];
    
    console.log(ans1 + " " + ans2 + " " + ans3);
});