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

public class Main {
	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		String[] hikakuStr = line.split("[\\s]+");
		// TODO ?????????????????????????????????????????????
		int a = Integer.parseInt(hikakuStr[0]);
		int b = Integer.parseInt(hikakuStr[1]);

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

		System.out.println(d + " " + r + " " + String.format("%.8f", f));
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		String[] hikakuStr = line.split("[\\s]+");
		// TODO ?????????????????????????????????????????????
		int a = Integer.parseInt(hikakuStr[0]);
		int b = Integer.parseInt(hikakuStr[1]);

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

		System.out.println(d + " " + r + " " + String.format("%.8f", f));
	}

} Main public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		String[] hikakuStr = line.split("[\\s]+");
		// TODO ?????????????????????????????????????????????
		int a = Integer.parseInt(hikakuStr[0]);
		int b = Integer.parseInt(hikakuStr[1]);

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

		System.out.println(d + " " + r + " " + String.format("%.8f", f));
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		String[] hikakuStr = line.split("[\\s]+");
		// TODO ?????????????????????????????????????????????
		int a = Integer.parseInt(hikakuStr[0]);
		int b = Integer.parseInt(hikakuStr[1]);

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

		System.out.println(d + " " + r + " " + String.format("%.8f", f));
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line = br.readLine(); line br.readLine() br.readLine br String[] hikakuStr = line.split("[\\s]+"); hikakuStr line.split("[\\s]+") line.split line "[\\s]+" int a = Integer.parseInt(hikakuStr[0]); a Integer.parseInt(hikakuStr[0]) Integer.parseInt Integer hikakuStr[0] hikakuStr 0 int b = Integer.parseInt(hikakuStr[1]); b Integer.parseInt(hikakuStr[1]) Integer.parseInt Integer hikakuStr[1] hikakuStr 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 System.out.println(d + " " + r + " " + String.format("%.8f", f)) System.out.println System.out System System.out d + " " + r + " " + String.format("%.8f", f) " " r d + " " + r + " " + String.format("%.8f", f) d " " r " " String.format("%.8f", f) String.format String "%.8f" f String[] args args public class Main {
	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		String[] hikakuStr = line.split("[\\s]+");
		// TODO ?????????????????????????????????????????????
		int a = Integer.parseInt(hikakuStr[0]);
		int b = Integer.parseInt(hikakuStr[1]);

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

		System.out.println(d + " " + r + " " + String.format("%.8f", f));
	}

} public class Main {
	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		String[] hikakuStr = line.split("[\\s]+");
		// TODO ?????????????????????????????????????????????
		int a = Integer.parseInt(hikakuStr[0]);
		int b = Integer.parseInt(hikakuStr[1]);

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

		System.out.println(d + " " + r + " " + String.format("%.8f", f));
	}

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

public class Main {
	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		String[] hikakuStr = line.split("[\\s]+");
		// TODO ?????????????????????????????????????????????
		int a = Integer.parseInt(hikakuStr[0]);
		int b = Integer.parseInt(hikakuStr[1]);

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

		System.out.println(d + " " + r + " " + String.format("%.8f", f));
	}

}