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

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

    int d = a / b;
    int r = a % b;
    double f = a.to!double / b;

    writefln("%s %s %.6f", d, r, f);
}