'use strict';
(function(stdin) {
    var inputs = stdin.toString().split(' ').map(Number);
    var a = inputs[0];
    var b = inputs[1];
    var n = Math.floor(a / b);
    var m = a % b;
    var f = a / b.toFixed(5);
    console.log(n,m,f);
}(require('fs').readFileSync('/dev/stdin', 'utf8')));