import java.util.Scanner;
class Main {
	public void ab() {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		double f = 0;
		int d = a / b;
		int r = a % b;
		f = a * 1.0 / b;
		System.out.printf("%d %d %7f",d,r,f);
	}
	public static void main(String[] args) {
		new Main().ab();
	}
} import java.util.Scanner; Scanner java.util class Main {
	public void ab() {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		double f = 0;
		int d = a / b;
		int r = a % b;
		f = a * 1.0 / b;
		System.out.printf("%d %d %7f",d,r,f);
	}
	public static void main(String[] args) {
		new Main().ab();
	}
} Main public void ab() {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		double f = 0;
		int d = a / b;
		int r = a % b;
		f = a * 1.0 / b;
		System.out.printf("%d %d %7f",d,r,f);
	} ab {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		double f = 0;
		int d = a / b;
		int r = a % b;
		f = a * 1.0 / b;
		System.out.printf("%d %d %7f",d,r,f);
	} 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 double f = 0; f 0 int d = a / b; d a / b a b int r = a % b; r a % b a b f = a * 1.0 / b f a * 1.0 / b a * 1.0 a 1.0 b System.out.printf("%d %d %7f",d,r,f) System.out.printf System.out System System.out "%d %d %7f" d r f public static void main(String[] args) {
		new Main().ab();
	} main {
		new Main().ab();
	} new Main().ab() new Main().ab new Main() String[] args args
import java.util.Scanner;
class Main {
	public void ab() {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		double f = 0;
		int d = a / b;
		int r = a % b;
		f = a * 1.0 / b;
		System.out.printf("%d %d %7f",d,r,f);
	}
	public static void main(String[] args) {
		new Main().ab();
	}
}