import java.util.Scanner;
class Main {
	
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		int quo = a / b;
		int rem = a % b;
		double de = 1.0 * a / b;
		String dec = String.format("%.8f", de);
		System.out.println(quo+" "+rem+" "+dec);
	}	
} 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();
		int b = scanner.nextInt();
		int quo = a / b;
		int rem = a % b;
		double de = 1.0 * a / b;
		String dec = String.format("%.8f", de);
		System.out.println(quo+" "+rem+" "+dec);
	}	
} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		int quo = a / b;
		int rem = a % b;
		double de = 1.0 * a / b;
		String dec = String.format("%.8f", de);
		System.out.println(quo+" "+rem+" "+dec);
	} main {
		Scanner scanner = new Scanner(System.in);
		
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		int quo = a / b;
		int rem = a % b;
		double de = 1.0 * a / b;
		String dec = String.format("%.8f", de);
		System.out.println(quo+" "+rem+" "+dec);
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner int b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner int quo = a / b; quo a / b a b int rem = a % b; rem a % b a b double de = 1.0 * a / b; de 1.0 * a / b 1.0 * a 1.0 a b String dec = String.format("%.8f", de); dec String.format("%.8f", de) String.format String "%.8f" de System.out.println(quo+" "+rem+" "+dec) System.out.println System.out System System.out quo+" "+rem+" "+dec " " rem quo+" "+rem+" "+dec quo " " rem " " dec 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();
		int b = scanner.nextInt();
		int quo = a / b;
		int rem = a % b;
		double de = 1.0 * a / b;
		String dec = String.format("%.8f", de);
		System.out.println(quo+" "+rem+" "+dec);
	}	
}