import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		scan.close();

		if (1 <= a && a <= 1000000000 && 1 <= b && b <= 1000000000) {
			int d = a / b;
			int r = a % b;
			double f = (double)a / (double)b;
			System.out.print(d + " " + r + " ");
			System.out.printf("%5.8f", f);
		}

	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		scan.close();

		if (1 <= a && a <= 1000000000 && 1 <= b && b <= 1000000000) {
			int d = a / b;
			int r = a % b;
			double f = (double)a / (double)b;
			System.out.print(d + " " + r + " ");
			System.out.printf("%5.8f", f);
		}

	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		scan.close();

		if (1 <= a && a <= 1000000000 && 1 <= b && b <= 1000000000) {
			int d = a / b;
			int r = a % b;
			double f = (double)a / (double)b;
			System.out.print(d + " " + r + " ");
			System.out.printf("%5.8f", f);
		}

	} main {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		scan.close();

		if (1 <= a && a <= 1000000000 && 1 <= b && b <= 1000000000) {
			int d = a / b;
			int r = a % b;
			double f = (double)a / (double)b;
			System.out.print(d + " " + r + " ");
			System.out.printf("%5.8f", f);
		}

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan scan.close() scan.close scan if (1 <= a && a <= 1000000000 && 1 <= b && b <= 1000000000) {
			int d = a / b;
			int r = a % b;
			double f = (double)a / (double)b;
			System.out.print(d + " " + r + " ");
			System.out.printf("%5.8f", f);
		} 1 <= a && a <= 1000000000 && 1 <= b && b <= 1000000000 1 <= b 1 <= a && a <= 1000000000 && 1 <= b && b <= 1000000000 1 <= a 1 a a <= 1000000000 a 1000000000 1 <= b 1 b b <= 1000000000 b 1000000000 {
			int d = a / b;
			int r = a % b;
			double f = (double)a / (double)b;
			System.out.print(d + " " + r + " ");
			System.out.printf("%5.8f", f);
		} 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.print(d + " " + r + " ") System.out.print System.out System System.out d + " " + r + " " r d + " " + r + " " d " " r " " System.out.printf("%5.8f", f) System.out.printf System.out System System.out "%5.8f" f String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		scan.close();

		if (1 <= a && a <= 1000000000 && 1 <= b && b <= 1000000000) {
			int d = a / b;
			int r = a % b;
			double f = (double)a / (double)b;
			System.out.print(d + " " + r + " ");
			System.out.printf("%5.8f", f);
		}

	}

} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		scan.close();

		if (1 <= a && a <= 1000000000 && 1 <= b && b <= 1000000000) {
			int d = a / b;
			int r = a % b;
			double f = (double)a / (double)b;
			System.out.print(d + " " + r + " ");
			System.out.printf("%5.8f", f);
		}

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		scan.close();

		if (1 <= a && a <= 1000000000 && 1 <= b && b <= 1000000000) {
			int d = a / b;
			int r = a % b;
			double f = (double)a / (double)b;
			System.out.print(d + " " + r + " ");
			System.out.printf("%5.8f", f);
		}

	}

}