'use strict';
(function(stdin) {
  var inputs  = stdin.toString().split(' ').map(Number);
var a = inputs[0];
var b = inputs[1];

var d,r,f;

//   a ?? b ??? d (??´??°)
// a ?? b ????????? ??? r (??´??°)
// a ?? b ??? f (???????°???°?????°)
// d,r,f
function number1 (a,b){
    return a/b;
}
function number2(a,b){
    return   Math.floor(a%b)
}
function number3(a,b){
    return Math.floor(a/b)
}
f=number1(a,b).toFixed(5)
r=number2(a,b)
d=number3(a,b)

console.log(d,r,f);
  
}(require('fs').readFileSync('/dev/stdin', 'utf8')));