import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		double a = sc.nextDouble();
		double b = sc.nextDouble();
		int d = 0;
		int r = 0;
		double f = 0;
		d = (int)(a / b);
		r = (int)(a % b);
		f = a / b;
		f = 1.0 * a / b;


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


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

		double a = sc.nextDouble();
		double b = sc.nextDouble();
		int d = 0;
		int r = 0;
		double f = 0;
		d = (int)(a / b);
		r = (int)(a % b);
		f = a / b;
		f = 1.0 * a / b;


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


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

		double a = sc.nextDouble();
		double b = sc.nextDouble();
		int d = 0;
		int r = 0;
		double f = 0;
		d = (int)(a / b);
		r = (int)(a % b);
		f = a / b;
		f = 1.0 * a / b;


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


	} main {
		Scanner sc = new Scanner(System.in);

		double a = sc.nextDouble();
		double b = sc.nextDouble();
		int d = 0;
		int r = 0;
		double f = 0;
		d = (int)(a / b);
		r = (int)(a % b);
		f = a / b;
		f = 1.0 * a / b;


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


	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) double a = sc.nextDouble(); a sc.nextDouble() sc.nextDouble sc double b = sc.nextDouble(); b sc.nextDouble() sc.nextDouble sc int d = 0; d 0 int r = 0; r 0 double f = 0; f 0 d = (int)(a / b) d (int)(a / b) a b r = (int)(a % b) r (int)(a % b) a b f = a / b f a / b a b f = 1.0 * a / b f 1.0 * a / b 1.0 * a 1.0 a b System.out.printf("%d %d %.5f",d, r, f) System.out.printf System.out System System.out "%d %d %.5f" d r f String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		double a = sc.nextDouble();
		double b = sc.nextDouble();
		int d = 0;
		int r = 0;
		double f = 0;
		d = (int)(a / b);
		r = (int)(a % b);
		f = a / b;
		f = 1.0 * a / b;


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


	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		double a = sc.nextDouble();
		double b = sc.nextDouble();
		int d = 0;
		int r = 0;
		double f = 0;
		d = (int)(a / b);
		r = (int)(a % b);
		f = a / b;
		f = 1.0 * a / b;


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


	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		double a = sc.nextDouble();
		double b = sc.nextDouble();
		int d = 0;
		int r = 0;
		double f = 0;
		d = (int)(a / b);
		r = (int)(a % b);
		f = a / b;
		f = 1.0 * a / b;


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


	}
}