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

void main() {
	
   auto a = readln.split.map!(to!int);
   write(a[0] / a[1], " ");
   write(a[0] % a[1], " ");
   writeln(cast(double)a[0] / a[1]);
}