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

void main()
{
  auto n=map!(to!int)(readln.strip.split);
  writefln("%d %d %.5f",n[0]/n[1],n[0]%n[1],cast(double)n[0]/n[1]);
}