import java.util.Scanner;

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

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