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

public class Main {

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

		String str;
		String[] arrStr;
		try {
			str = br.readLine();
			arrStr = str.split(" ");

			long a = Integer.parseInt(arrStr[0]);
			long b = Integer.parseInt(arrStr[1]);

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

			DecimalFormat df = new DecimalFormat("0.00000000");
			System.out.println(d+" "+r+" "+df.format(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 import java.text.DecimalFormat; DecimalFormat java.text public class Main {

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

		String str;
		String[] arrStr;
		try {
			str = br.readLine();
			arrStr = str.split(" ");

			long a = Integer.parseInt(arrStr[0]);
			long b = Integer.parseInt(arrStr[1]);

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

			DecimalFormat df = new DecimalFormat("0.00000000");
			System.out.println(d+" "+r+" "+df.format(f));
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
} Main public static void main(String[] args) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String str;
		String[] arrStr;
		try {
			str = br.readLine();
			arrStr = str.split(" ");

			long a = Integer.parseInt(arrStr[0]);
			long b = Integer.parseInt(arrStr[1]);

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

			DecimalFormat df = new DecimalFormat("0.00000000");
			System.out.println(d+" "+r+" "+df.format(f));
		} catch (IOException e) {
			e.printStackTrace();
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String str;
		String[] arrStr;
		try {
			str = br.readLine();
			arrStr = str.split(" ");

			long a = Integer.parseInt(arrStr[0]);
			long b = Integer.parseInt(arrStr[1]);

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

			DecimalFormat df = new DecimalFormat("0.00000000");
			System.out.println(d+" "+r+" "+df.format(f));
		} catch (IOException e) {
			e.printStackTrace();
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str; str String[] arrStr; arrStr try {
			str = br.readLine();
			arrStr = str.split(" ");

			long a = Integer.parseInt(arrStr[0]);
			long b = Integer.parseInt(arrStr[1]);

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

			DecimalFormat df = new DecimalFormat("0.00000000");
			System.out.println(d+" "+r+" "+df.format(f));
		} catch (IOException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		} IOException e {
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			str = br.readLine();
			arrStr = str.split(" ");

			long a = Integer.parseInt(arrStr[0]);
			long b = Integer.parseInt(arrStr[1]);

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

			DecimalFormat df = new DecimalFormat("0.00000000");
			System.out.println(d+" "+r+" "+df.format(f));
		} str = br.readLine() str br.readLine() br.readLine br arrStr = str.split(" ") arrStr str.split(" ") str.split str " " long a = Integer.parseInt(arrStr[0]); a Integer.parseInt(arrStr[0]) Integer.parseInt Integer arrStr[0] arrStr 0 long b = Integer.parseInt(arrStr[1]); b Integer.parseInt(arrStr[1]) Integer.parseInt Integer arrStr[1] arrStr 1 long d = a/b; d a/b a b long r = a%b; r a%b a b double f = (double)a/b; f (double)a/b (double)a b DecimalFormat df = new DecimalFormat("0.00000000"); df new DecimalFormat("0.00000000") System.out.println(d+" "+r+" "+df.format(f)) System.out.println System.out System System.out d+" "+r+" "+df.format(f) " " r d+" "+r+" "+df.format(f) d " " r " " df.format(f) df.format df f String[] args args public class Main {

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

		String str;
		String[] arrStr;
		try {
			str = br.readLine();
			arrStr = str.split(" ");

			long a = Integer.parseInt(arrStr[0]);
			long b = Integer.parseInt(arrStr[1]);

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

			DecimalFormat df = new DecimalFormat("0.00000000");
			System.out.println(d+" "+r+" "+df.format(f));
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
} public class Main {

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

		String str;
		String[] arrStr;
		try {
			str = br.readLine();
			arrStr = str.split(" ");

			long a = Integer.parseInt(arrStr[0]);
			long b = Integer.parseInt(arrStr[1]);

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

			DecimalFormat df = new DecimalFormat("0.00000000");
			System.out.println(d+" "+r+" "+df.format(f));
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.text.DecimalFormat;

public class Main {

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

		String str;
		String[] arrStr;
		try {
			str = br.readLine();
			arrStr = str.split(" ");

			long a = Integer.parseInt(arrStr[0]);
			long b = Integer.parseInt(arrStr[1]);

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

			DecimalFormat df = new DecimalFormat("0.00000000");
			System.out.println(d+" "+r+" "+df.format(f));
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}