// ITP1_4_A.js
"use strict";
process.stdin.resume();
process.stdin.setEncoding('utf8');

var lines = []
var reader = require('readline').createInterface({
  input: process.stdin,
  output: process.stdout
});

reader.on('line', (line) => {
  lines.push(line);
});
/* 入力は 
3 2
*/
var s = 0;
reader.on('close', () => {
    var a,b;
    [a,b]  = lines[0].trim().split(' ').map(x=>parseInt(x));

    console.log(aux(a,b).join(' '));
});

function aux(a,b)
{
    var c = a/b;

    return([Math.floor(c).toString(),(a%b).toString(),c.toFixed(5)]);
}
