'use strict';
(function(stdin) {
  //declare function

  //declare variable
  var inputs = stdin.toString().trim().split('\n');
  var a = Number(inputs[0].split(' ')[0]);
  var b = Number(inputs[0].split(' ')[1]);
  var d = parseInt(a / b);
  var r = a % b;
  var f = (a / b).toFixed(8);
  //main
  console.log(d + ' ' + r + ' ' + f);
  //display
  //console.log(inputs);
})(require('fs').readFileSync('/dev/stdin', 'utf8'));