public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		java.util.Scanner sc = new java.util.Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();

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

		System.out.print( String.format("%d %d %f", d, r, f) );

//		System.out.printf("%d %d %f", d, r, f);
	}

} public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		java.util.Scanner sc = new java.util.Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();

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

		System.out.print( String.format("%d %d %f", d, r, f) );

//		System.out.printf("%d %d %f", d, r, f);
	}

} Main public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		java.util.Scanner sc = new java.util.Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();

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

		System.out.print( String.format("%d %d %f", d, r, f) );

//		System.out.printf("%d %d %f", d, r, f);
	} main {
		// TODO ?????????????????????????????????????????????
		java.util.Scanner sc = new java.util.Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();

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

		System.out.print( String.format("%d %d %f", d, r, f) );

//		System.out.printf("%d %d %f", d, r, f);
	} java.util.Scanner sc = new java.util.Scanner(System.in); sc new java.util.Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int d = a / b; d a / b a b int r = a % b; r a % b a b double f = (double)a / (double)b; f (double)a / (double)b (double)a (double)b System.out.print( String.format("%d %d %f", d, r, f) ) System.out.print System.out System System.out String.format("%d %d %f", d, r, f) String.format String "%d %d %f" d r f String[] args args public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		java.util.Scanner sc = new java.util.Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();

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

		System.out.print( String.format("%d %d %f", d, r, f) );

//		System.out.printf("%d %d %f", d, r, f);
	}

} public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		java.util.Scanner sc = new java.util.Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();

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

		System.out.print( String.format("%d %d %f", d, r, f) );

//		System.out.printf("%d %d %f", d, r, f);
	}

} Main
public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		java.util.Scanner sc = new java.util.Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();

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

		System.out.print( String.format("%d %d %f", d, r, f) );

//		System.out.printf("%d %d %f", d, r, f);
	}

}