public class Main {
	public static void main(String[] args) {
		java.util.Scanner sc = new java.util.Scanner(System.in);
		//StringBuilder sb = new StringBuilder();
		int a = sc.nextInt();
		int b = sc.nextInt();

		int d = a / b;
		int r = a % b;
		double da = (double) a;
		double db = (double) b;
		double f = da / db;
		System.out.print(d + " " + r + " ");
		System.out.printf("%.5f",f);
		System.out.println();
	}
} public class Main {
	public static void main(String[] args) {
		java.util.Scanner sc = new java.util.Scanner(System.in);
		//StringBuilder sb = new StringBuilder();
		int a = sc.nextInt();
		int b = sc.nextInt();

		int d = a / b;
		int r = a % b;
		double da = (double) a;
		double db = (double) b;
		double f = da / db;
		System.out.print(d + " " + r + " ");
		System.out.printf("%.5f",f);
		System.out.println();
	}
} Main public static void main(String[] args) {
		java.util.Scanner sc = new java.util.Scanner(System.in);
		//StringBuilder sb = new StringBuilder();
		int a = sc.nextInt();
		int b = sc.nextInt();

		int d = a / b;
		int r = a % b;
		double da = (double) a;
		double db = (double) b;
		double f = da / db;
		System.out.print(d + " " + r + " ");
		System.out.printf("%.5f",f);
		System.out.println();
	} main {
		java.util.Scanner sc = new java.util.Scanner(System.in);
		//StringBuilder sb = new StringBuilder();
		int a = sc.nextInt();
		int b = sc.nextInt();

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

		int d = a / b;
		int r = a % b;
		double da = (double) a;
		double db = (double) b;
		double f = da / db;
		System.out.print(d + " " + r + " ");
		System.out.printf("%.5f",f);
		System.out.println();
	}
} public class Main {
	public static void main(String[] args) {
		java.util.Scanner sc = new java.util.Scanner(System.in);
		//StringBuilder sb = new StringBuilder();
		int a = sc.nextInt();
		int b = sc.nextInt();

		int d = a / b;
		int r = a % b;
		double da = (double) a;
		double db = (double) b;
		double f = da / db;
		System.out.print(d + " " + r + " ");
		System.out.printf("%.5f",f);
		System.out.println();
	}
} Main
public class Main {
	public static void main(String[] args) {
		java.util.Scanner sc = new java.util.Scanner(System.in);
		//StringBuilder sb = new StringBuilder();
		int a = sc.nextInt();
		int b = sc.nextInt();

		int d = a / b;
		int r = a % b;
		double da = (double) a;
		double db = (double) b;
		double f = da / db;
		System.out.print(d + " " + r + " ");
		System.out.printf("%.5f",f);
		System.out.println();
	}
}