process.stdin.resume();
process.stdin.setEncoding('utf8');

process.stdin.on('data', function (chunk) {
    const n = chunk.toString();
    const input = n.split(' ').map(x=>Number(x));
    const returna = input[0]%input[1];
    const returnb = input[0]/input[1];
    console.log(`${kirisute(input)} ${returna} ${kiru(input)}`);
});

function kirisute(input) {
    const returnc = input[0]/input[1];
    return Math.floor(returnc); 
 }

 function kiru(input) {
    const returnb = input[0]/input[1];
    return Math.floor(returnb*1000000)/1000000; 
 }
