import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a=sc.nextInt();
		int b=sc.nextInt();
		double i=(double)a/(double)b;
 		System.out.printf((a-a%b)/b+" "+a%b+" "+"%.10f",i);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a=sc.nextInt();
		int b=sc.nextInt();
		double i=(double)a/(double)b;
 		System.out.printf((a-a%b)/b+" "+a%b+" "+"%.10f",i);
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a=sc.nextInt();
		int b=sc.nextInt();
		double i=(double)a/(double)b;
 		System.out.printf((a-a%b)/b+" "+a%b+" "+"%.10f",i);
	} main {
		Scanner sc = new Scanner(System.in);
		int a=sc.nextInt();
		int b=sc.nextInt();
		double i=(double)a/(double)b;
 		System.out.printf((a-a%b)/b+" "+a%b+" "+"%.10f",i);
	} 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 double i=(double)a/(double)b; i (double)a/(double)b (double)a (double)b System.out.printf((a-a%b)/b+" "+a%b+" "+"%.10f",i) System.out.printf System.out System System.out (a-a%b)/b+" "+a%b+" "+"%.10f" " " a%b (a-a%b)/b+" "+a%b+" "+"%.10f" (a-a%b)/b (a-a%b) a a%b a b b " " a%b a b " " "%.10f" i String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a=sc.nextInt();
		int b=sc.nextInt();
		double i=(double)a/(double)b;
 		System.out.printf((a-a%b)/b+" "+a%b+" "+"%.10f",i);
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a=sc.nextInt();
		int b=sc.nextInt();
		double i=(double)a/(double)b;
 		System.out.printf((a-a%b)/b+" "+a%b+" "+"%.10f",i);
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a=sc.nextInt();
		int b=sc.nextInt();
		double i=(double)a/(double)b;
 		System.out.printf((a-a%b)/b+" "+a%b+" "+"%.10f",i);
	}
}