import std.stdio;
import std.conv;
import std.string;
import std.format;

void main()
{
  string s = chomp(readln());
  int a = to!int(s.split(" ")[0]);
  int b = to!int(s.split(" ")[1]);
  
  writef("%d ", a/b);
  writef("%d ", a%b);
  writefln("%f ", a/b);
}