import java.util.Scanner;

public class Main {

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

		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		
		int d = a / b;
		int r = a % b;
		double f = (double) a / (double)b;
		System.out.printf("%d %d %.10f\n", d, r, f);
	}
}
 import java.util.Scanner; Scanner java.util public class Main {

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

		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		
		int d = a / b;
		int r = a % b;
		double f = (double) a / (double)b;
		System.out.printf("%d %d %.10f\n", d, r, f);
	}
} Main public static void main(String[] args) {
		
		Scanner stdIn = new Scanner(System.in);

		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		
		int d = a / b;
		int r = a % b;
		double f = (double) a / (double)b;
		System.out.printf("%d %d %.10f\n", d, r, f);
	} main {
		
		Scanner stdIn = new Scanner(System.in);

		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		
		int d = a / b;
		int r = a % b;
		double f = (double) a / (double)b;
		System.out.printf("%d %d %.10f\n", d, r, f);
	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int a = stdIn.nextInt(); a stdIn.nextInt() stdIn.nextInt stdIn int b = stdIn.nextInt(); b stdIn.nextInt() stdIn.nextInt stdIn 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.printf("%d %d %.10f\n", d, r, f) System.out.printf System.out System System.out "%d %d %.10f\n" d r f String[] args args public class Main {

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

		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		
		int d = a / b;
		int r = a % b;
		double f = (double) a / (double)b;
		System.out.printf("%d %d %.10f\n", d, r, f);
	}
} public class Main {

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

		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		
		int d = a / b;
		int r = a % b;
		double f = (double) a / (double)b;
		System.out.printf("%d %d %.10f\n", d, r, f);
	}
} Main
import java.util.Scanner;

public class Main {

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

		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		
		int d = a / b;
		int r = a % b;
		double f = (double) a / (double)b;
		System.out.printf("%d %d %.10f\n", d, r, f);
	}
}

