import java.util.Scanner;


class Main {

	public static void main(String[] args) {
	
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		
		if(1 <= a && b <= 10 * 10 * 10 * 10 * 10 * 10 * 10 * 10 * 10){
			int d = a / b;
			int r = a % b;
			
			double A = (int)a;
			double B = (int)b;

			double f = A / B;
			
			String F = String.format("%.5f", f);
			
			System.out.println(d + " " + r + " " + F );
		}
	}

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

	public static void main(String[] args) {
	
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		
		if(1 <= a && b <= 10 * 10 * 10 * 10 * 10 * 10 * 10 * 10 * 10){
			int d = a / b;
			int r = a % b;
			
			double A = (int)a;
			double B = (int)b;

			double f = A / B;
			
			String F = String.format("%.5f", f);
			
			System.out.println(d + " " + r + " " + F );
		}
	}

} Main public static void main(String[] args) {
	
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		
		if(1 <= a && b <= 10 * 10 * 10 * 10 * 10 * 10 * 10 * 10 * 10){
			int d = a / b;
			int r = a % b;
			
			double A = (int)a;
			double B = (int)b;

			double f = A / B;
			
			String F = String.format("%.5f", f);
			
			System.out.println(d + " " + r + " " + F );
		}
	} main {
	
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		
		if(1 <= a && b <= 10 * 10 * 10 * 10 * 10 * 10 * 10 * 10 * 10){
			int d = a / b;
			int r = a % b;
			
			double A = (int)a;
			double B = (int)b;

			double f = A / B;
			
			String F = String.format("%.5f", f);
			
			System.out.println(d + " " + r + " " + F );
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc if(1 <= a && b <= 10 * 10 * 10 * 10 * 10 * 10 * 10 * 10 * 10){
			int d = a / b;
			int r = a % b;
			
			double A = (int)a;
			double B = (int)b;

			double f = A / B;
			
			String F = String.format("%.5f", f);
			
			System.out.println(d + " " + r + " " + F );
		} 1 <= a && b <= 10 * 10 * 10 * 10 * 10 * 10 * 10 * 10 * 10 1 <= a 1 a b <= 10 * 10 * 10 * 10 * 10 * 10 * 10 * 10 * 10 b 10 * 10 * 10 * 10 * 10 * 10 * 10 * 10 * 10 10 10 10 10 10 10 10 * 10 * 10 * 10 * 10 * 10 * 10 * 10 * 10 10 10 10 10 10 10 10 10 10 {
			int d = a / b;
			int r = a % b;
			
			double A = (int)a;
			double B = (int)b;

			double f = A / B;
			
			String F = String.format("%.5f", f);
			
			System.out.println(d + " " + r + " " + F );
		} int d = a / b; d a / b a b int r = a % b; r a % b a b double A = (int)a; A (int)a double B = (int)b; B (int)b double f = A / B; f A / B A B String F = String.format("%.5f", f); F String.format("%.5f", f) String.format String "%.5f" f System.out.println(d + " " + r + " " + F ) System.out.println System.out System System.out d + " " + r + " " + F " " r d + " " + r + " " + F d " " r " " F String[] args args
import java.util.Scanner;


class Main {

	public static void main(String[] args) {
	
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		
		if(1 <= a && b <= 10 * 10 * 10 * 10 * 10 * 10 * 10 * 10 * 10){
			int d = a / b;
			int r = a % b;
			
			double A = (int)a;
			double B = (int)b;

			double f = A / B;
			
			String F = String.format("%.5f", f);
			
			System.out.println(d + " " + r + " " + F );
		}
	}

}