import java.io.*;
import 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 quotient = a/b;
		int rest = a%b;
		String str = String.format("%.6f", 1.0*a/b);
		


		System.out.println(quotient+" "+rest+" "+str);
	}
} import java.io.*; io.* java import java.util.*; util.* java public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int quotient = a/b;
		int rest = a%b;
		String str = String.format("%.6f", 1.0*a/b);
		


		System.out.println(quotient+" "+rest+" "+str);
	}
} Main public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int quotient = a/b;
		int rest = a%b;
		String str = String.format("%.6f", 1.0*a/b);
		


		System.out.println(quotient+" "+rest+" "+str);
	} main {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int quotient = a/b;
		int rest = a%b;
		String str = String.format("%.6f", 1.0*a/b);
		


		System.out.println(quotient+" "+rest+" "+str);
	} 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 quotient = a/b; quotient a/b a b int rest = a%b; rest a%b a b String str = String.format("%.6f", 1.0*a/b); str String.format("%.6f", 1.0*a/b) String.format String "%.6f" 1.0*a/b 1.0*a 1.0 a b System.out.println(quotient+" "+rest+" "+str) System.out.println System.out System System.out quotient+" "+rest+" "+str " " rest quotient+" "+rest+" "+str quotient " " rest " " str 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 quotient = a/b;
		int rest = a%b;
		String str = String.format("%.6f", 1.0*a/b);
		


		System.out.println(quotient+" "+rest+" "+str);
	}
} public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int quotient = a/b;
		int rest = a%b;
		String str = String.format("%.6f", 1.0*a/b);
		


		System.out.println(quotient+" "+rest+" "+str);
	}
} Main
import java.io.*;
import 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 quotient = a/b;
		int rest = a%b;
		String str = String.format("%.6f", 1.0*a/b);
		


		System.out.println(quotient+" "+rest+" "+str);
	}
}