import java.io.*;

public class Main{
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] starray = str.split(" ");	
		int a = Integer.parseInt(starray[0]);
		int b = Integer.parseInt(starray[1]);	
	System.out.println(a/b+" "+a%b+" "+String.format("%.5f",(double) a /(double) b));
	}
} import java.io.*; io.* java public class Main{
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] starray = str.split(" ");	
		int a = Integer.parseInt(starray[0]);
		int b = Integer.parseInt(starray[1]);	
	System.out.println(a/b+" "+a%b+" "+String.format("%.5f",(double) a /(double) b));
	}
} Main public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] starray = str.split(" ");	
		int a = Integer.parseInt(starray[0]);
		int b = Integer.parseInt(starray[1]);	
	System.out.println(a/b+" "+a%b+" "+String.format("%.5f",(double) a /(double) b));
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] starray = str.split(" ");	
		int a = Integer.parseInt(starray[0]);
		int b = Integer.parseInt(starray[1]);	
	System.out.println(a/b+" "+a%b+" "+String.format("%.5f",(double) a /(double) b));
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str = br.readLine(); str br.readLine() br.readLine br String[] starray = str.split(" "); starray str.split(" ") str.split str " " int a = Integer.parseInt(starray[0]); a Integer.parseInt(starray[0]) Integer.parseInt Integer starray[0] starray 0 int b = Integer.parseInt(starray[1]); b Integer.parseInt(starray[1]) Integer.parseInt Integer starray[1] starray 1 System.out.println(a/b+" "+a%b+" "+String.format("%.5f",(double) a /(double) b)) System.out.println System.out System System.out a/b+" "+a%b+" "+String.format("%.5f",(double) a /(double) b) " " a%b a/b+" "+a%b+" "+String.format("%.5f",(double) a /(double) b) a/b a b " " a%b a b " " String.format("%.5f",(double) a /(double) b) String.format String "%.5f" (double) a /(double) b (double) a (double) b String[] args args public class Main{
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] starray = str.split(" ");	
		int a = Integer.parseInt(starray[0]);
		int b = Integer.parseInt(starray[1]);	
	System.out.println(a/b+" "+a%b+" "+String.format("%.5f",(double) a /(double) b));
	}
} public class Main{
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] starray = str.split(" ");	
		int a = Integer.parseInt(starray[0]);
		int b = Integer.parseInt(starray[1]);	
	System.out.println(a/b+" "+a%b+" "+String.format("%.5f",(double) a /(double) b));
	}
} Main
import java.io.*;

public class Main{
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] starray = str.split(" ");	
		int a = Integer.parseInt(starray[0]);
		int b = Integer.parseInt(starray[1]);	
	System.out.println(a/b+" "+a%b+" "+String.format("%.5f",(double) a /(double) b));
	}
}