#include <bits/stdc++.h>
int main(void) {
  int a, b, d, r;
  double f;
  scanf("%d %d", &a, &b);
  d = a / b;
  r = a % b;
  f = (double)a / (double)b;
  printf("%d %d %f\n", d, r, f);
  return 0;
}
