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

void main() {
    int[] tmp = readln.chomp.split.to!(int[]);
    int a = tmp[0], b = tmp[1];
    int d = a / b;
    int r = a % b;
    double f = a.to!double / b.to!double;
    writefln("%d %d %0.5f", d, r, f);
}
