import java.text.*;
import java.math.*;
import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		DecimalFormat df = new DecimalFormat();
		df.applyPattern("0");
		df.setMaximumFractionDigits(8);
		df.setMinimumFractionDigits(8);

		int kaisu = 2;
		long[] num = new long[kaisu];

		for(int i = 0; i < kaisu; i++) {
			num[i] = scan.nextInt();
		}

		long d = num[0] / num[1];
		long r = num[0] % num[1];
		double nf = num[0] / (double)num[1];
		Double objf = new Double(nf);
		String f = df.format(objf);
		System.out.println(d + " " + r + " " + f);
	}
} import java.text.*; text.* java import java.math.*; math.* java import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		DecimalFormat df = new DecimalFormat();
		df.applyPattern("0");
		df.setMaximumFractionDigits(8);
		df.setMinimumFractionDigits(8);

		int kaisu = 2;
		long[] num = new long[kaisu];

		for(int i = 0; i < kaisu; i++) {
			num[i] = scan.nextInt();
		}

		long d = num[0] / num[1];
		long r = num[0] % num[1];
		double nf = num[0] / (double)num[1];
		Double objf = new Double(nf);
		String f = df.format(objf);
		System.out.println(d + " " + r + " " + f);
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		DecimalFormat df = new DecimalFormat();
		df.applyPattern("0");
		df.setMaximumFractionDigits(8);
		df.setMinimumFractionDigits(8);

		int kaisu = 2;
		long[] num = new long[kaisu];

		for(int i = 0; i < kaisu; i++) {
			num[i] = scan.nextInt();
		}

		long d = num[0] / num[1];
		long r = num[0] % num[1];
		double nf = num[0] / (double)num[1];
		Double objf = new Double(nf);
		String f = df.format(objf);
		System.out.println(d + " " + r + " " + f);
	} main {
		Scanner scan = new Scanner(System.in);
		DecimalFormat df = new DecimalFormat();
		df.applyPattern("0");
		df.setMaximumFractionDigits(8);
		df.setMinimumFractionDigits(8);

		int kaisu = 2;
		long[] num = new long[kaisu];

		for(int i = 0; i < kaisu; i++) {
			num[i] = scan.nextInt();
		}

		long d = num[0] / num[1];
		long r = num[0] % num[1];
		double nf = num[0] / (double)num[1];
		Double objf = new Double(nf);
		String f = df.format(objf);
		System.out.println(d + " " + r + " " + f);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) DecimalFormat df = new DecimalFormat(); df new DecimalFormat() df.applyPattern("0") df.applyPattern df "0" df.setMaximumFractionDigits(8) df.setMaximumFractionDigits df 8 df.setMinimumFractionDigits(8) df.setMinimumFractionDigits df 8 int kaisu = 2; kaisu 2 long[] num = new long[kaisu]; num new long[kaisu] kaisu for(int i = 0; i < kaisu; i++) {
			num[i] = scan.nextInt();
		} int i = 0; int i = 0; i 0 i < kaisu i kaisu i++ i++ i {
			num[i] = scan.nextInt();
		} {
			num[i] = scan.nextInt();
		} num[i] = scan.nextInt() num[i] num i scan.nextInt() scan.nextInt scan long d = num[0] / num[1]; d num[0] / num[1] num[0] num 0 num[1] num 1 long r = num[0] % num[1]; r num[0] % num[1] num[0] num 0 num[1] num 1 double nf = num[0] / (double)num[1]; nf num[0] / (double)num[1] num[0] num 0 (double)num[1] num 1 Double objf = new Double(nf); objf new Double(nf) String f = df.format(objf); f df.format(objf) df.format df objf 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 public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		DecimalFormat df = new DecimalFormat();
		df.applyPattern("0");
		df.setMaximumFractionDigits(8);
		df.setMinimumFractionDigits(8);

		int kaisu = 2;
		long[] num = new long[kaisu];

		for(int i = 0; i < kaisu; i++) {
			num[i] = scan.nextInt();
		}

		long d = num[0] / num[1];
		long r = num[0] % num[1];
		double nf = num[0] / (double)num[1];
		Double objf = new Double(nf);
		String f = df.format(objf);
		System.out.println(d + " " + r + " " + f);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		DecimalFormat df = new DecimalFormat();
		df.applyPattern("0");
		df.setMaximumFractionDigits(8);
		df.setMinimumFractionDigits(8);

		int kaisu = 2;
		long[] num = new long[kaisu];

		for(int i = 0; i < kaisu; i++) {
			num[i] = scan.nextInt();
		}

		long d = num[0] / num[1];
		long r = num[0] % num[1];
		double nf = num[0] / (double)num[1];
		Double objf = new Double(nf);
		String f = df.format(objf);
		System.out.println(d + " " + r + " " + f);
	}
} Main
import java.text.*;
import java.math.*;
import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		DecimalFormat df = new DecimalFormat();
		df.applyPattern("0");
		df.setMaximumFractionDigits(8);
		df.setMinimumFractionDigits(8);

		int kaisu = 2;
		long[] num = new long[kaisu];

		for(int i = 0; i < kaisu; i++) {
			num[i] = scan.nextInt();
		}

		long d = num[0] / num[1];
		long r = num[0] % num[1];
		double nf = num[0] / (double)num[1];
		Double objf = new Double(nf);
		String f = df.format(objf);
		System.out.println(d + " " + r + " " + f);
	}
}