

import java.util.Scanner;
import java.math.*;

public class Main {
	public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		int a, b;
		a = scan.nextInt();
		b = scan.nextInt();

		// ???????°???°?????°??¨?????\???????????¨???
		double d;
		d = 0.0;

		// a??b ?????´??°???????¨????
		System.out.print(Integer.toString(a / b) + " ");
		// a??b????????? ?????´??°???????¨????
		System.out.print(Integer.toString(a % b) + " ");
		// a??b??????????°???°?????°???????¨????
		// a????????????.0???????????????
		d = Double.parseDouble(Integer.toString(a) + ".0");

		BigDecimal x = new BigDecimal(d / b);

		System.out.print(x.setScale(5, BigDecimal.ROUND_HALF_UP));

	}
} import java.util.Scanner; Scanner java.util import java.math.*; math.* java public class Main {
	public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		int a, b;
		a = scan.nextInt();
		b = scan.nextInt();

		// ???????°???°?????°??¨?????\???????????¨???
		double d;
		d = 0.0;

		// a??b ?????´??°???????¨????
		System.out.print(Integer.toString(a / b) + " ");
		// a??b????????? ?????´??°???????¨????
		System.out.print(Integer.toString(a % b) + " ");
		// a??b??????????°???°?????°???????¨????
		// a????????????.0???????????????
		d = Double.parseDouble(Integer.toString(a) + ".0");

		BigDecimal x = new BigDecimal(d / b);

		System.out.print(x.setScale(5, BigDecimal.ROUND_HALF_UP));

	}
} Main public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		int a, b;
		a = scan.nextInt();
		b = scan.nextInt();

		// ???????°???°?????°??¨?????\???????????¨???
		double d;
		d = 0.0;

		// a??b ?????´??°???????¨????
		System.out.print(Integer.toString(a / b) + " ");
		// a??b????????? ?????´??°???????¨????
		System.out.print(Integer.toString(a % b) + " ");
		// a??b??????????°???°?????°???????¨????
		// a????????????.0???????????????
		d = Double.parseDouble(Integer.toString(a) + ".0");

		BigDecimal x = new BigDecimal(d / b);

		System.out.print(x.setScale(5, BigDecimal.ROUND_HALF_UP));

	} main {
		Scanner scan = new Scanner(System.in);
		int a, b;
		a = scan.nextInt();
		b = scan.nextInt();

		// ???????°???°?????°??¨?????\???????????¨???
		double d;
		d = 0.0;

		// a??b ?????´??°???????¨????
		System.out.print(Integer.toString(a / b) + " ");
		// a??b????????? ?????´??°???????¨????
		System.out.print(Integer.toString(a % b) + " ");
		// a??b??????????°???°?????°???????¨????
		// a????????????.0???????????????
		d = Double.parseDouble(Integer.toString(a) + ".0");

		BigDecimal x = new BigDecimal(d / b);

		System.out.print(x.setScale(5, BigDecimal.ROUND_HALF_UP));

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a a b; b a = scan.nextInt() a scan.nextInt() scan.nextInt scan b = scan.nextInt() b scan.nextInt() scan.nextInt scan double d; d d = 0.0 d 0.0 System.out.print(Integer.toString(a / b) + " ") System.out.print System.out System System.out Integer.toString(a / b) + " " Integer.toString(a / b) Integer.toString Integer a / b a b " " System.out.print(Integer.toString(a % b) + " ") System.out.print System.out System System.out Integer.toString(a % b) + " " Integer.toString(a % b) Integer.toString Integer a % b a b " " d = Double.parseDouble(Integer.toString(a) + ".0") d Double.parseDouble(Integer.toString(a) + ".0") Double.parseDouble Double Integer.toString(a) + ".0" Integer.toString(a) Integer.toString Integer a ".0" BigDecimal x = new BigDecimal(d / b); x new BigDecimal(d / b) System.out.print(x.setScale(5, BigDecimal.ROUND_HALF_UP)) System.out.print System.out System System.out x.setScale(5, BigDecimal.ROUND_HALF_UP) x.setScale x 5 BigDecimal.ROUND_HALF_UP BigDecimal BigDecimal.ROUND_HALF_UP String args[] args public class Main {
	public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		int a, b;
		a = scan.nextInt();
		b = scan.nextInt();

		// ???????°???°?????°??¨?????\???????????¨???
		double d;
		d = 0.0;

		// a??b ?????´??°???????¨????
		System.out.print(Integer.toString(a / b) + " ");
		// a??b????????? ?????´??°???????¨????
		System.out.print(Integer.toString(a % b) + " ");
		// a??b??????????°???°?????°???????¨????
		// a????????????.0???????????????
		d = Double.parseDouble(Integer.toString(a) + ".0");

		BigDecimal x = new BigDecimal(d / b);

		System.out.print(x.setScale(5, BigDecimal.ROUND_HALF_UP));

	}
} public class Main {
	public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		int a, b;
		a = scan.nextInt();
		b = scan.nextInt();

		// ???????°???°?????°??¨?????\???????????¨???
		double d;
		d = 0.0;

		// a??b ?????´??°???????¨????
		System.out.print(Integer.toString(a / b) + " ");
		// a??b????????? ?????´??°???????¨????
		System.out.print(Integer.toString(a % b) + " ");
		// a??b??????????°???°?????°???????¨????
		// a????????????.0???????????????
		d = Double.parseDouble(Integer.toString(a) + ".0");

		BigDecimal x = new BigDecimal(d / b);

		System.out.print(x.setScale(5, BigDecimal.ROUND_HALF_UP));

	}
} Main


import java.util.Scanner;
import java.math.*;

public class Main {
	public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		int a, b;
		a = scan.nextInt();
		b = scan.nextInt();

		// ???????°???°?????°??¨?????\???????????¨???
		double d;
		d = 0.0;

		// a??b ?????´??°???????¨????
		System.out.print(Integer.toString(a / b) + " ");
		// a??b????????? ?????´??°???????¨????
		System.out.print(Integer.toString(a % b) + " ");
		// a??b??????????°???°?????°???????¨????
		// a????????????.0???????????????
		d = Double.parseDouble(Integer.toString(a) + ".0");

		BigDecimal x = new BigDecimal(d / b);

		System.out.print(x.setScale(5, BigDecimal.ROUND_HALF_UP));

	}
}