#include <bits/stdc++.h>
int main() {
  int r, d, s;
  float f, a, b, k;
  scanf("%f %f", &a, &b);
  d = a / b;
  r = a - b * d;
  f = (a / b) * 100000;
  s = f;
  k = s * pow(10, -5);
  printf("%d %d %.5f\n", d, r, k);
  return 0;
}
