import java.util.Scanner;

public class Main {
	private void calc(){
		Scanner scanner = new Scanner(System.in);
		int x =scanner.nextInt();
		int y =scanner.nextInt();
		
		int d=x/y;
		int r=x%y;
		double f=(double)x/(double)y;
		
		System.out.printf("%d %d %05f", d, r, f);
	}
	
	public static void main(String[] args) {
		Main run =new Main();
		run.calc();

	}
} import java.util.Scanner; Scanner java.util public class Main {
	private void calc(){
		Scanner scanner = new Scanner(System.in);
		int x =scanner.nextInt();
		int y =scanner.nextInt();
		
		int d=x/y;
		int r=x%y;
		double f=(double)x/(double)y;
		
		System.out.printf("%d %d %05f", d, r, f);
	}
	
	public static void main(String[] args) {
		Main run =new Main();
		run.calc();

	}
} Main private void calc(){
		Scanner scanner = new Scanner(System.in);
		int x =scanner.nextInt();
		int y =scanner.nextInt();
		
		int d=x/y;
		int r=x%y;
		double f=(double)x/(double)y;
		
		System.out.printf("%d %d %05f", d, r, f);
	} calc {
		Scanner scanner = new Scanner(System.in);
		int x =scanner.nextInt();
		int y =scanner.nextInt();
		
		int d=x/y;
		int r=x%y;
		double f=(double)x/(double)y;
		
		System.out.printf("%d %d %05f", d, r, f);
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int x =scanner.nextInt(); x scanner.nextInt() scanner.nextInt scanner int y =scanner.nextInt(); y scanner.nextInt() scanner.nextInt scanner int d=x/y; d x/y x y int r=x%y; r x%y x y double f=(double)x/(double)y; f (double)x/(double)y (double)x (double)y System.out.printf("%d %d %05f", d, r, f) System.out.printf System.out System System.out "%d %d %05f" d r f public static void main(String[] args) {
		Main run =new Main();
		run.calc();

	} main {
		Main run =new Main();
		run.calc();

	} Main run =new Main(); run new Main() run.calc() run.calc run String[] args args public class Main {
	private void calc(){
		Scanner scanner = new Scanner(System.in);
		int x =scanner.nextInt();
		int y =scanner.nextInt();
		
		int d=x/y;
		int r=x%y;
		double f=(double)x/(double)y;
		
		System.out.printf("%d %d %05f", d, r, f);
	}
	
	public static void main(String[] args) {
		Main run =new Main();
		run.calc();

	}
} public class Main {
	private void calc(){
		Scanner scanner = new Scanner(System.in);
		int x =scanner.nextInt();
		int y =scanner.nextInt();
		
		int d=x/y;
		int r=x%y;
		double f=(double)x/(double)y;
		
		System.out.printf("%d %d %05f", d, r, f);
	}
	
	public static void main(String[] args) {
		Main run =new Main();
		run.calc();

	}
} Main
import java.util.Scanner;

public class Main {
	private void calc(){
		Scanner scanner = new Scanner(System.in);
		int x =scanner.nextInt();
		int y =scanner.nextInt();
		
		int d=x/y;
		int r=x%y;
		double f=(double)x/(double)y;
		
		System.out.printf("%d %d %05f", d, r, f);
	}
	
	public static void main(String[] args) {
		Main run =new Main();
		run.calc();

	}
}