import java.io.*;

public class Main{
public static void main(String[] args){
try{
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String[] str = br.readLine().split(" ");
	int a = Integer.parseInt(str[0]);
	int b = Integer.parseInt(str[1]);

	int d = a / b;
	int r = a % b;
	double f = (double) a / (double) b;
	
	System.out.printf("%d %d %.5f\n", d, r, f);

}catch(IOException e){
System.out.println(e);
}
}
} import java.io.*; io.* java public class Main{
public static void main(String[] args){
try{
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String[] str = br.readLine().split(" ");
	int a = Integer.parseInt(str[0]);
	int b = Integer.parseInt(str[1]);

	int d = a / b;
	int r = a % b;
	double f = (double) a / (double) b;
	
	System.out.printf("%d %d %.5f\n", d, r, f);

}catch(IOException e){
System.out.println(e);
}
}
} Main public static void main(String[] args){
try{
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String[] str = br.readLine().split(" ");
	int a = Integer.parseInt(str[0]);
	int b = Integer.parseInt(str[1]);

	int d = a / b;
	int r = a % b;
	double f = (double) a / (double) b;
	
	System.out.printf("%d %d %.5f\n", d, r, f);

}catch(IOException e){
System.out.println(e);
}
} main {
try{
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String[] str = br.readLine().split(" ");
	int a = Integer.parseInt(str[0]);
	int b = Integer.parseInt(str[1]);

	int d = a / b;
	int r = a % b;
	double f = (double) a / (double) b;
	
	System.out.printf("%d %d %.5f\n", d, r, f);

}catch(IOException e){
System.out.println(e);
}
} try{
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String[] str = br.readLine().split(" ");
	int a = Integer.parseInt(str[0]);
	int b = Integer.parseInt(str[1]);

	int d = a / b;
	int r = a % b;
	double f = (double) a / (double) b;
	
	System.out.printf("%d %d %.5f\n", d, r, f);

}catch(IOException e){
System.out.println(e);
} catch(IOException e){
System.out.println(e);
} IOException e {
System.out.println(e);
} System.out.println(e) System.out.println System.out System System.out e {
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String[] str = br.readLine().split(" ");
	int a = Integer.parseInt(str[0]);
	int b = Integer.parseInt(str[1]);

	int d = a / b;
	int r = a % b;
	double f = (double) a / (double) b;
	
	System.out.printf("%d %d %.5f\n", d, r, f);

} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] str = br.readLine().split(" "); str br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int a = Integer.parseInt(str[0]); a Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 int b = Integer.parseInt(str[1]); b Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 int d = a / b; d a / b a b int r = a % b; r a % b a b double f = (double) a / (double) b; f (double) a / (double) b (double) a (double) b System.out.printf("%d %d %.5f\n", d, r, f) System.out.printf System.out System System.out "%d %d %.5f\n" d r f String[] args args public class Main{
public static void main(String[] args){
try{
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String[] str = br.readLine().split(" ");
	int a = Integer.parseInt(str[0]);
	int b = Integer.parseInt(str[1]);

	int d = a / b;
	int r = a % b;
	double f = (double) a / (double) b;
	
	System.out.printf("%d %d %.5f\n", d, r, f);

}catch(IOException e){
System.out.println(e);
}
}
} public class Main{
public static void main(String[] args){
try{
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String[] str = br.readLine().split(" ");
	int a = Integer.parseInt(str[0]);
	int b = Integer.parseInt(str[1]);

	int d = a / b;
	int r = a % b;
	double f = (double) a / (double) b;
	
	System.out.printf("%d %d %.5f\n", d, r, f);

}catch(IOException e){
System.out.println(e);
}
}
} Main
import java.io.*;

public class Main{
public static void main(String[] args){
try{
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String[] str = br.readLine().split(" ");
	int a = Integer.parseInt(str[0]);
	int b = Integer.parseInt(str[1]);

	int d = a / b;
	int r = a % b;
	double f = (double) a / (double) b;
	
	System.out.printf("%d %d %.5f\n", d, r, f);

}catch(IOException e){
System.out.println(e);
}
}
}