import std.stdio;
import std.conv;
import std.string;
import std.typecons;
import std.algorithm;
import std.array;
import std.range;
import std.math;
import std.container;
import std.random;
      
void main() {
  auto x = readln.chomp.split.map!(to!int);
  writeln(x[0]/x[1]);
  writeln(x[0]%x[1]);
  writefln("%.7f", x[0].to!double/x[1]);
}