import java.util.Scanner;

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

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

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

} Main
import java.util.Scanner;

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

}