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

void main() {

   auto a = readln.split.map!(to!int);
   write(a[0] / a[1], " ");
   write(a[0] % a[1], " ");
   printf("%f\n", cast(double)a[0] / a[1]);
}