"use strict"
let input=require('fs').readFileSync('/dev/stdin','utf8');
let arr=input.split(' ');
let a=parseInt(arr[0]);
let b=parseInt(arr[1]);
let d=a/b;
let m=a%b;
console.log(Math.floor(d)+' '+m+' '+d.toFixed(8));

