import std.functional,
       std.algorithm,
       std.container,
       std.typetuple,
       std.typecons,
       std.bigint,
       std.string,
       std.traits,
       std.array,
       std.range,
       std.stdio,
       std.conv,
       std.format;

void main()
{
auto ip = readln.split.to!(int[]);
writefln("%s %s %.10f", ip[0]/ip[1], ip[0]%ip[1], ip[0].to!double/ip[1].to!double);
}
