import java.math.BigDecimal;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] array = line.split(" ");
		int a = Integer.parseInt(array[0]);
		int b = Integer.parseInt(array[1]);

		int d = a / b;
		int r = a % b;

		BigDecimal A = BigDecimal.valueOf(a);
		BigDecimal B = BigDecimal.valueOf(b);
		BigDecimal f = A.divide(B, 8, BigDecimal.ROUND_HALF_UP);

		System.out.println(d + " " + r + " " + f.toPlainString());
	}

} import java.math.BigDecimal; BigDecimal java.math import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] array = line.split(" ");
		int a = Integer.parseInt(array[0]);
		int b = Integer.parseInt(array[1]);

		int d = a / b;
		int r = a % b;

		BigDecimal A = BigDecimal.valueOf(a);
		BigDecimal B = BigDecimal.valueOf(b);
		BigDecimal f = A.divide(B, 8, BigDecimal.ROUND_HALF_UP);

		System.out.println(d + " " + r + " " + f.toPlainString());
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] array = line.split(" ");
		int a = Integer.parseInt(array[0]);
		int b = Integer.parseInt(array[1]);

		int d = a / b;
		int r = a % b;

		BigDecimal A = BigDecimal.valueOf(a);
		BigDecimal B = BigDecimal.valueOf(b);
		BigDecimal f = A.divide(B, 8, BigDecimal.ROUND_HALF_UP);

		System.out.println(d + " " + r + " " + f.toPlainString());
	} main {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] array = line.split(" ");
		int a = Integer.parseInt(array[0]);
		int b = Integer.parseInt(array[1]);

		int d = a / b;
		int r = a % b;

		BigDecimal A = BigDecimal.valueOf(a);
		BigDecimal B = BigDecimal.valueOf(b);
		BigDecimal f = A.divide(B, 8, BigDecimal.ROUND_HALF_UP);

		System.out.println(d + " " + r + " " + f.toPlainString());
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String line = sc.nextLine(); line sc.nextLine() sc.nextLine sc String[] array = line.split(" "); array line.split(" ") line.split line " " int a = Integer.parseInt(array[0]); a Integer.parseInt(array[0]) Integer.parseInt Integer array[0] array 0 int b = Integer.parseInt(array[1]); b Integer.parseInt(array[1]) Integer.parseInt Integer array[1] array 1 int d = a / b; d a / b a b int r = a % b; r a % b a b BigDecimal A = BigDecimal.valueOf(a); A BigDecimal.valueOf(a) BigDecimal.valueOf BigDecimal a BigDecimal B = BigDecimal.valueOf(b); B BigDecimal.valueOf(b) BigDecimal.valueOf BigDecimal b BigDecimal f = A.divide(B, 8, BigDecimal.ROUND_HALF_UP); f A.divide(B, 8, BigDecimal.ROUND_HALF_UP) A.divide A B 8 BigDecimal.ROUND_HALF_UP BigDecimal BigDecimal.ROUND_HALF_UP System.out.println(d + " " + r + " " + f.toPlainString()) System.out.println System.out System System.out d + " " + r + " " + f.toPlainString() " " r d + " " + r + " " + f.toPlainString() d " " r " " f.toPlainString() f.toPlainString f String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] array = line.split(" ");
		int a = Integer.parseInt(array[0]);
		int b = Integer.parseInt(array[1]);

		int d = a / b;
		int r = a % b;

		BigDecimal A = BigDecimal.valueOf(a);
		BigDecimal B = BigDecimal.valueOf(b);
		BigDecimal f = A.divide(B, 8, BigDecimal.ROUND_HALF_UP);

		System.out.println(d + " " + r + " " + f.toPlainString());
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] array = line.split(" ");
		int a = Integer.parseInt(array[0]);
		int b = Integer.parseInt(array[1]);

		int d = a / b;
		int r = a % b;

		BigDecimal A = BigDecimal.valueOf(a);
		BigDecimal B = BigDecimal.valueOf(b);
		BigDecimal f = A.divide(B, 8, BigDecimal.ROUND_HALF_UP);

		System.out.println(d + " " + r + " " + f.toPlainString());
	}

} Main
import java.math.BigDecimal;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] array = line.split(" ");
		int a = Integer.parseInt(array[0]);
		int b = Integer.parseInt(array[1]);

		int d = a / b;
		int r = a % b;

		BigDecimal A = BigDecimal.valueOf(a);
		BigDecimal B = BigDecimal.valueOf(b);
		BigDecimal f = A.divide(B, 8, BigDecimal.ROUND_HALF_UP);

		System.out.println(d + " " + r + " " + f.toPlainString());
	}

}