'use strict';
(function(stdin) {
	var inputs  = stdin.toString().split('\n')[0].split(' ').map(Number);
	var a = inputs[0];
	var b = inputs[1];


	var c = Math.floor(a / b);
	var d = a % b;
	var e = a / b;

	console.log(c ,d,e);
  // ????????????????????????
}(inputs[0],inputs[1]
	)); 
}(require('fs').readFileSync('/dev/stdin', 'utf8')));