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();

		System.out.println(a / b + " " + a % b + " " + String.format("%.8f", (double)a / b));
		scan.close();
	}
} 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();

		System.out.println(a / b + " " + a % b + " " + String.format("%.8f", (double)a / b));
		scan.close();
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);;
		int a = scan.nextInt();
		int b = scan.nextInt();

		System.out.println(a / b + " " + a % b + " " + String.format("%.8f", (double)a / b));
		scan.close();
	} main {
		Scanner scan = new Scanner(System.in);;
		int a = scan.nextInt();
		int b = scan.nextInt();

		System.out.println(a / b + " " + a % b + " " + String.format("%.8f", (double)a / b));
		scan.close();
	} 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 System.out.println(a / b + " " + a % b + " " + String.format("%.8f", (double)a / b)) System.out.println System.out System System.out a / b + " " + a % b + " " + String.format("%.8f", (double)a / b) " " a % b a / b + " " + a % b + " " + String.format("%.8f", (double)a / b) a / b a b " " a % b a b " " String.format("%.8f", (double)a / b) String.format String "%.8f" (double)a / b (double)a b scan.close() scan.close scan 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();

		System.out.println(a / b + " " + a % b + " " + String.format("%.8f", (double)a / b));
		scan.close();
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);;
		int a = scan.nextInt();
		int b = scan.nextInt();

		System.out.println(a / b + " " + a % b + " " + String.format("%.8f", (double)a / b));
		scan.close();
	}
} 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();

		System.out.println(a / b + " " + a % b + " " + String.format("%.8f", (double)a / b));
		scan.close();
	}
}
