const input = require('fs').readFileSync('/dev/stdin/', 'utf8');
const numbers = input.trim().split('\n')[0].split(' ');

const a = numbers[0];
const b = numbers[1];

const result = `${Math.floor(a/b).toString()} ${a % b} ${a*1.0/b}`;
console.log(result);
