import java.io.*;

class Main{

    public static void main(String[] args)throws IOException{

	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String strInput = br.readLine();
	String[] input = strInput.split(" ");
	int a = Integer.parseInt(input[0]);
	int b = Integer.parseInt(input[1]);

	int d = a / b;
	int r = a % b;
	double f = (double) a / b;

	String rd = String.valueOf(d);
	String rr = String.valueOf(r);
	String rf = String.valueOf(f);

	System.out.printf("%d %d %f\n", d, r, f);

    }

} import java.io.*; io.* java class Main{

    public static void main(String[] args)throws IOException{

	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String strInput = br.readLine();
	String[] input = strInput.split(" ");
	int a = Integer.parseInt(input[0]);
	int b = Integer.parseInt(input[1]);

	int d = a / b;
	int r = a % b;
	double f = (double) a / b;

	String rd = String.valueOf(d);
	String rr = String.valueOf(r);
	String rf = String.valueOf(f);

	System.out.printf("%d %d %f\n", d, r, f);

    }

} Main public static void main(String[] args)throws IOException{

	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String strInput = br.readLine();
	String[] input = strInput.split(" ");
	int a = Integer.parseInt(input[0]);
	int b = Integer.parseInt(input[1]);

	int d = a / b;
	int r = a % b;
	double f = (double) a / b;

	String rd = String.valueOf(d);
	String rr = String.valueOf(r);
	String rf = String.valueOf(f);

	System.out.printf("%d %d %f\n", d, r, f);

    } main {

	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String strInput = br.readLine();
	String[] input = strInput.split(" ");
	int a = Integer.parseInt(input[0]);
	int b = Integer.parseInt(input[1]);

	int d = a / b;
	int r = a % b;
	double f = (double) a / b;

	String rd = String.valueOf(d);
	String rr = String.valueOf(r);
	String rf = String.valueOf(f);

	System.out.printf("%d %d %f\n", d, r, f);

    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String strInput = br.readLine(); strInput br.readLine() br.readLine br String[] input = strInput.split(" "); input strInput.split(" ") strInput.split strInput " " int a = Integer.parseInt(input[0]); a Integer.parseInt(input[0]) Integer.parseInt Integer input[0] input 0 int b = Integer.parseInt(input[1]); b Integer.parseInt(input[1]) Integer.parseInt Integer input[1] input 1 int d = a / b; d a / b a b int r = a % b; r a % b a b double f = (double) a / b; f (double) a / b (double) a b String rd = String.valueOf(d); rd String.valueOf(d) String.valueOf String d String rr = String.valueOf(r); rr String.valueOf(r) String.valueOf String r String rf = String.valueOf(f); rf String.valueOf(f) String.valueOf String f System.out.printf("%d %d %f\n", d, r, f) System.out.printf System.out System System.out "%d %d %f\n" d r f String[] args args
import java.io.*;

class Main{

    public static void main(String[] args)throws IOException{

	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String strInput = br.readLine();
	String[] input = strInput.split(" ");
	int a = Integer.parseInt(input[0]);
	int b = Integer.parseInt(input[1]);

	int d = a / b;
	int r = a % b;
	double f = (double) a / b;

	String rd = String.valueOf(d);
	String rr = String.valueOf(r);
	String rf = String.valueOf(f);

	System.out.printf("%d %d %f\n", d, r, f);

    }

}