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();
		
		int d=0, r=0;
		double f=0.00000; 
		
		d = a/b;
		r = a%b;
		f = (double)a/b;
		
		System.out.println(d+" "+r+" "+String.format("%5f", 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();
		
		int d=0, r=0;
		double f=0.00000; 
		
		d = a/b;
		r = a%b;
		f = (double)a/b;
		
		System.out.println(d+" "+r+" "+String.format("%5f", f));	
	}
} Main public static void main(String [] args){
		Scanner scan = new Scanner(System.in);
		
		int a = scan.nextInt();
		int b = scan.nextInt();
		
		int d=0, r=0;
		double f=0.00000; 
		
		d = a/b;
		r = a%b;
		f = (double)a/b;
		
		System.out.println(d+" "+r+" "+String.format("%5f", f));	
	} main {
		Scanner scan = new Scanner(System.in);
		
		int a = scan.nextInt();
		int b = scan.nextInt();
		
		int d=0, r=0;
		double f=0.00000; 
		
		d = a/b;
		r = a%b;
		f = (double)a/b;
		
		System.out.println(d+" "+r+" "+String.format("%5f", 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 int d=0 d 0 r=0; r 0 double f=0.00000; f 0.00000 d = a/b d a/b a b r = a%b r a%b a b f = (double)a/b f (double)a/b (double)a b System.out.println(d+" "+r+" "+String.format("%5f", f)) System.out.println System.out System System.out d+" "+r+" "+String.format("%5f", f) " " r d+" "+r+" "+String.format("%5f", f) d " " r " " String.format("%5f", f) String.format String "%5f" 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();
		
		int d=0, r=0;
		double f=0.00000; 
		
		d = a/b;
		r = a%b;
		f = (double)a/b;
		
		System.out.println(d+" "+r+" "+String.format("%5f", f));	
	}
} public class Main {
	public static void main(String [] args){
		Scanner scan = new Scanner(System.in);
		
		int a = scan.nextInt();
		int b = scan.nextInt();
		
		int d=0, r=0;
		double f=0.00000; 
		
		d = a/b;
		r = a%b;
		f = (double)a/b;
		
		System.out.println(d+" "+r+" "+String.format("%5f", 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();
		
		int d=0, r=0;
		double f=0.00000; 
		
		d = a/b;
		r = a%b;
		f = (double)a/b;
		
		System.out.println(d+" "+r+" "+String.format("%5f", f));	
	}
}