var input= require('fs').readFileSync('/dev/stdin', 'utf8');
var arr=input.split(" ").map(Number);
var a=arr[0];
var b=arr[1];
var result=[];
result.push(Math.floor(a/b));
result.push(a%b);
result.push(a/b);
console.log(result.join(" "));