import java.io.*;

class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br =
			new BufferedReader(new InputStreamReader(System.in));

		String[] line = br.readLine().split(" ");
		int a = Integer.parseInt(line[0]);
		int b = Integer.parseInt(line[1]);

		int d = a / b;
		int r = a % b;
		String f = String.format("%.5f", ((double)a / (double)b));

		System.out.println(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[] line = br.readLine().split(" ");
		int a = Integer.parseInt(line[0]);
		int b = Integer.parseInt(line[1]);

		int d = a / b;
		int r = a % b;
		String f = String.format("%.5f", ((double)a / (double)b));

		System.out.println(d + " " + r + " " + f);
	}
} Main public static void main(String[] args) throws IOException {
		BufferedReader br =
			new BufferedReader(new InputStreamReader(System.in));

		String[] line = br.readLine().split(" ");
		int a = Integer.parseInt(line[0]);
		int b = Integer.parseInt(line[1]);

		int d = a / b;
		int r = a % b;
		String f = String.format("%.5f", ((double)a / (double)b));

		System.out.println(d + " " + r + " " + f);
	} main {
		BufferedReader br =
			new BufferedReader(new InputStreamReader(System.in));

		String[] line = br.readLine().split(" ");
		int a = Integer.parseInt(line[0]);
		int b = Integer.parseInt(line[1]);

		int d = a / b;
		int r = a % b;
		String f = String.format("%.5f", ((double)a / (double)b));

		System.out.println(d + " " + r + " " + f);
	} BufferedReader br =
			new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] line = br.readLine().split(" "); line br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int a = Integer.parseInt(line[0]); a Integer.parseInt(line[0]) Integer.parseInt Integer line[0] line 0 int b = Integer.parseInt(line[1]); b Integer.parseInt(line[1]) Integer.parseInt Integer line[1] line 1 int d = a / b; d a / b a b int r = a % b; r a % b a b String f = String.format("%.5f", ((double)a / (double)b)); f String.format("%.5f", ((double)a / (double)b)) String.format String "%.5f" ((double)a / (double)b) (double)a (double)b System.out.println(d + " " + r + " " + f) System.out.println System.out System System.out d + " " + r + " " + f " " r d + " " + r + " " + f 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[] line = br.readLine().split(" ");
		int a = Integer.parseInt(line[0]);
		int b = Integer.parseInt(line[1]);

		int d = a / b;
		int r = a % b;
		String f = String.format("%.5f", ((double)a / (double)b));

		System.out.println(d + " " + r + " " + f);
	}
}