import java.util.Scanner;

class Main{
	static public void main(String agrs[]){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int d,r=0;

		d = a/b;
		r = a%b;
		System.out.printf("%d %d %f", d, r, (double)a/(double)b);
	}
} import java.util.Scanner; Scanner java.util class Main{
	static public void main(String agrs[]){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int d,r=0;

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

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

		d = a/b;
		r = a%b;
		System.out.printf("%d %d %f", d, r, (double)a/(double)b);
	} Scanner sc = new Scanner(System.in); sc new 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 d r=0; r 0 d = a/b d a/b a b r = a%b r a%b a b System.out.printf("%d %d %f", d, r, (double)a/(double)b) System.out.printf System.out System System.out "%d %d %f" d r (double)a/(double)b (double)a (double)b String agrs[] agrs
import java.util.Scanner;

class Main{
	static public void main(String agrs[]){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int d,r=0;

		d = a/b;
		r = a%b;
		System.out.printf("%d %d %f", d, r, (double)a/(double)b);
	}
}