import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

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

		String inputData = br.readLine();
		String[] inputValue = inputData.split(" ");

		int a = Integer.parseInt(inputValue[0]);
		int b = Integer.parseInt(inputValue[1]);

		double conversion_a = a;
		double conversion_b = b;

		int d = a/b;
		int r = a%b;
		double f = conversion_a/conversion_b;

		System.out.printf(d + " " + r + " " + "%.5f", f);
	}

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

		String inputData = br.readLine();
		String[] inputValue = inputData.split(" ");

		int a = Integer.parseInt(inputValue[0]);
		int b = Integer.parseInt(inputValue[1]);

		double conversion_a = a;
		double conversion_b = b;

		int d = a/b;
		int r = a%b;
		double f = conversion_a/conversion_b;

		System.out.printf(d + " " + r + " " + "%.5f", f);
	}

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

		String inputData = br.readLine();
		String[] inputValue = inputData.split(" ");

		int a = Integer.parseInt(inputValue[0]);
		int b = Integer.parseInt(inputValue[1]);

		double conversion_a = a;
		double conversion_b = b;

		int d = a/b;
		int r = a%b;
		double f = conversion_a/conversion_b;

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

		String inputData = br.readLine();
		String[] inputValue = inputData.split(" ");

		int a = Integer.parseInt(inputValue[0]);
		int b = Integer.parseInt(inputValue[1]);

		double conversion_a = a;
		double conversion_b = b;

		int d = a/b;
		int r = a%b;
		double f = conversion_a/conversion_b;

		System.out.printf(d + " " + r + " " + "%.5f", f);
	} BufferedReader br =
				new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String inputData = br.readLine(); inputData br.readLine() br.readLine br String[] inputValue = inputData.split(" "); inputValue inputData.split(" ") inputData.split inputData " " int a = Integer.parseInt(inputValue[0]); a Integer.parseInt(inputValue[0]) Integer.parseInt Integer inputValue[0] inputValue 0 int b = Integer.parseInt(inputValue[1]); b Integer.parseInt(inputValue[1]) Integer.parseInt Integer inputValue[1] inputValue 1 double conversion_a = a; conversion_a a double conversion_b = b; conversion_b b int d = a/b; d a/b a b int r = a%b; r a%b a b double f = conversion_a/conversion_b; f conversion_a/conversion_b conversion_a conversion_b System.out.printf(d + " " + r + " " + "%.5f", f) System.out.printf System.out System System.out d + " " + r + " " + "%.5f" " " r d + " " + r + " " + "%.5f" d " " r " " "%.5f" f String[] args args public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br =
				new BufferedReader(new InputStreamReader(System.in));

		String inputData = br.readLine();
		String[] inputValue = inputData.split(" ");

		int a = Integer.parseInt(inputValue[0]);
		int b = Integer.parseInt(inputValue[1]);

		double conversion_a = a;
		double conversion_b = b;

		int d = a/b;
		int r = a%b;
		double f = conversion_a/conversion_b;

		System.out.printf(d + " " + r + " " + "%.5f", f);
	}

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

		String inputData = br.readLine();
		String[] inputValue = inputData.split(" ");

		int a = Integer.parseInt(inputValue[0]);
		int b = Integer.parseInt(inputValue[1]);

		double conversion_a = a;
		double conversion_b = b;

		int d = a/b;
		int r = a%b;
		double f = conversion_a/conversion_b;

		System.out.printf(d + " " + r + " " + "%.5f", f);
	}

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

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

		String inputData = br.readLine();
		String[] inputValue = inputData.split(" ");

		int a = Integer.parseInt(inputValue[0]);
		int b = Integer.parseInt(inputValue[1]);

		double conversion_a = a;
		double conversion_b = b;

		int d = a/b;
		int r = a%b;
		double f = conversion_a/conversion_b;

		System.out.printf(d + " " + r + " " + "%.5f", f);
	}

}