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

void main() {
    auto input = getStdin!(string[])[0];
    auto num = input.split(" ").to!(int[]);
    int a = num[0];
    int b = num[1];
    float f = a.to!(float) / b.to!(float);
    writefln("%d %d %f", a / b, a % b, f);
}

T getStdin(T)() {
    string[] cmd;
    string line;
    while ((line = chomp(stdin.readln())) != "") cmd ~= line;
    return to!(T)(cmd);
}