let input = require('fs').readFileSync( '/dev/stdin', 'utf8' );
let arr = input.split(" ").map(Number);
let a = arr[0];
let b = arr[1];
console.log(Math.floor(a / b)+" "+a % b+" "+(a / b).toFixed(5));
