#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int x, y, d, r;
  double f;
  cin >> x >> y;
  d = x / y;
  r = x % y;
  f = (double)x / (double)y;
  cout << d << " " << r << " " << fixed << f << endl;
}
