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

  //declare variable
  var inputs = stdin.toString().trim().split('\n');
  var cols = inputs[0].split(' ').map(Number);
  var d = parseInt(cols[0] / cols[1]);
  var l = cols[0] % cols[1];
  var f = parseFloat(cols[0] / cols[1]).toFixed(5);
  //main

  //display
  console.log(d, l, f);
})(require('fs').readFileSync('/dev/stdin', 'utf8'))