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

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		
		Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
		int d = a/b;
		int r = a%b;
		double x = a;
		double y = b;
		double f = x/y;
		
		BigDecimal z = new BigDecimal(f);
		BigDecimal z1 = z.setScale(5, BigDecimal.ROUND_HALF_UP);

		System.out.print(d + " " + r + " ");
		System.out.printf("%.5f",z1);
	}

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

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		
		Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
		int d = a/b;
		int r = a%b;
		double x = a;
		double y = b;
		double f = x/y;
		
		BigDecimal z = new BigDecimal(f);
		BigDecimal z1 = z.setScale(5, BigDecimal.ROUND_HALF_UP);

		System.out.print(d + " " + r + " ");
		System.out.printf("%.5f",z1);
	}

} Main public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		
		Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
		int d = a/b;
		int r = a%b;
		double x = a;
		double y = b;
		double f = x/y;
		
		BigDecimal z = new BigDecimal(f);
		BigDecimal z1 = z.setScale(5, BigDecimal.ROUND_HALF_UP);

		System.out.print(d + " " + r + " ");
		System.out.printf("%.5f",z1);
	} main {
		// TODO ?????????????????????????????????????????????
		
		Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
		int d = a/b;
		int r = a%b;
		double x = a;
		double y = b;
		double f = x/y;
		
		BigDecimal z = new BigDecimal(f);
		BigDecimal z1 = z.setScale(5, BigDecimal.ROUND_HALF_UP);

		System.out.print(d + " " + r + " ");
		System.out.printf("%.5f",z1);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int d = a/b; d a/b a b int r = a%b; r a%b a b double x = a; x a double y = b; y b double f = x/y; f x/y x y BigDecimal z = new BigDecimal(f); z new BigDecimal(f) BigDecimal z1 = z.setScale(5, BigDecimal.ROUND_HALF_UP); z1 z.setScale(5, BigDecimal.ROUND_HALF_UP) z.setScale z 5 BigDecimal.ROUND_HALF_UP BigDecimal BigDecimal.ROUND_HALF_UP System.out.print(d + " " + r + " ") System.out.print System.out System System.out d + " " + r + " " r d + " " + r + " " d " " r " " System.out.printf("%.5f",z1) System.out.printf System.out System System.out "%.5f" z1 String[] args args public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		
		Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
		int d = a/b;
		int r = a%b;
		double x = a;
		double y = b;
		double f = x/y;
		
		BigDecimal z = new BigDecimal(f);
		BigDecimal z1 = z.setScale(5, BigDecimal.ROUND_HALF_UP);

		System.out.print(d + " " + r + " ");
		System.out.printf("%.5f",z1);
	}

} public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		
		Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
		int d = a/b;
		int r = a%b;
		double x = a;
		double y = b;
		double f = x/y;
		
		BigDecimal z = new BigDecimal(f);
		BigDecimal z1 = z.setScale(5, BigDecimal.ROUND_HALF_UP);

		System.out.print(d + " " + r + " ");
		System.out.printf("%.5f",z1);
	}

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

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		
		Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
		int d = a/b;
		int r = a%b;
		double x = a;
		double y = b;
		double f = x/y;
		
		BigDecimal z = new BigDecimal(f);
		BigDecimal z1 = z.setScale(5, BigDecimal.ROUND_HALF_UP);

		System.out.print(d + " " + r + " ");
		System.out.printf("%.5f",z1);
	}

}