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

class Main {
	public static void main(String[] args) {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		try {
			String[] list = br.readLine().split(" ");
			int a = Integer.parseInt(list[0]);
			int b = Integer.parseInt(list[1]);
			int d = a / b;
			int r = a % b;
			double f = (double) a / b;
			System.out.println(d + " " + r + " " + String.format("%.5f", f));

		} catch (IOException e) {
			e.printStackTrace();
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io class Main {
	public static void main(String[] args) {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		try {
			String[] list = br.readLine().split(" ");
			int a = Integer.parseInt(list[0]);
			int b = Integer.parseInt(list[1]);
			int d = a / b;
			int r = a % b;
			double f = (double) a / b;
			System.out.println(d + " " + r + " " + String.format("%.5f", f));

		} catch (IOException e) {
			e.printStackTrace();
		}
	}
} Main public static void main(String[] args) {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		try {
			String[] list = br.readLine().split(" ");
			int a = Integer.parseInt(list[0]);
			int b = Integer.parseInt(list[1]);
			int d = a / b;
			int r = a % b;
			double f = (double) a / b;
			System.out.println(d + " " + r + " " + String.format("%.5f", f));

		} catch (IOException e) {
			e.printStackTrace();
		}
	} main {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		try {
			String[] list = br.readLine().split(" ");
			int a = Integer.parseInt(list[0]);
			int b = Integer.parseInt(list[1]);
			int d = a / b;
			int r = a % b;
			double f = (double) a / b;
			System.out.println(d + " " + r + " " + String.format("%.5f", f));

		} catch (IOException e) {
			e.printStackTrace();
		}
	} InputStreamReader isr = new InputStreamReader(System.in); isr new InputStreamReader(System.in) BufferedReader br = new BufferedReader(isr); br new BufferedReader(isr) try {
			String[] list = br.readLine().split(" ");
			int a = Integer.parseInt(list[0]);
			int b = Integer.parseInt(list[1]);
			int d = a / b;
			int r = a % b;
			double f = (double) a / b;
			System.out.println(d + " " + r + " " + String.format("%.5f", f));

		} catch (IOException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		} IOException e {
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			String[] list = br.readLine().split(" ");
			int a = Integer.parseInt(list[0]);
			int b = Integer.parseInt(list[1]);
			int d = a / b;
			int r = a % b;
			double f = (double) a / b;
			System.out.println(d + " " + r + " " + String.format("%.5f", f));

		} String[] list = br.readLine().split(" "); list br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int a = Integer.parseInt(list[0]); a Integer.parseInt(list[0]) Integer.parseInt Integer list[0] list 0 int b = Integer.parseInt(list[1]); b Integer.parseInt(list[1]) Integer.parseInt Integer list[1] list 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("%.5f", f)) System.out.println System.out System System.out d + " " + r + " " + String.format("%.5f", f) " " r d + " " + r + " " + String.format("%.5f", f) d " " r " " String.format("%.5f", f) String.format String "%.5f" f String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main {
	public static void main(String[] args) {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		try {
			String[] list = br.readLine().split(" ");
			int a = Integer.parseInt(list[0]);
			int b = Integer.parseInt(list[1]);
			int d = a / b;
			int r = a % b;
			double f = (double) a / b;
			System.out.println(d + " " + r + " " + String.format("%.5f", f));

		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}