var input = require('fs').readFileSync('/dev/stdin', 'utf8');
var number = input.split(' ').map(Number);
var a = number[0];
var b = number[1];
var x = Math.floor(a/b);
var y = a%b;
var z = (a/b).toFixed(10);
console.log(x+" "+y+" "+z);
