import std.stdio, std.array, std.conv, std.string;

void main() {
  string[] input = split(readln());
  int a = to!int(input[0]);
  int b = to!int(input[1]);

  writef("%d %d %.10f\n", a / b, a % b, cast(double)a / cast(double)b);
}