import java.util.Scanner;

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

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