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

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