var x = require('fs').readFileSync('/dev/stdin', 'utf8');
var sprintf=require("sprintf-js").sprintf;
var arr = x.split(/\s/);
a = arr[0];
b = arr[1];
// console.log(Math.floor(a/b) +" "+ (a - Math.floor(a/b)*b) +" "+ a/b);
f = (a/b).toFixed(10);
console.log(sprintf('%d %d %0.8f', Math.floor(a/b), (a - Math.floor(a/b)*b), f));

