import java.io.*;
  
class Main{
	public static void main(String[] args) throws IOException{

		int x,y,d,r;
		double f;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str[] = br.readLine().split(" ");
		x = Integer.parseInt(str[0]);
		y = Integer.parseInt(str[1]);

		d = x / y;
		r = x % y;
		f = 1.0 * x / y;

		System.out.printf("%1d %1d %1.5f",d, r, f);
    	}
} import java.io.*; io.* java class Main{
	public static void main(String[] args) throws IOException{

		int x,y,d,r;
		double f;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str[] = br.readLine().split(" ");
		x = Integer.parseInt(str[0]);
		y = Integer.parseInt(str[1]);

		d = x / y;
		r = x % y;
		f = 1.0 * x / y;

		System.out.printf("%1d %1d %1.5f",d, r, f);
    	}
} Main public static void main(String[] args) throws IOException{

		int x,y,d,r;
		double f;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str[] = br.readLine().split(" ");
		x = Integer.parseInt(str[0]);
		y = Integer.parseInt(str[1]);

		d = x / y;
		r = x % y;
		f = 1.0 * x / y;

		System.out.printf("%1d %1d %1.5f",d, r, f);
    	} main {

		int x,y,d,r;
		double f;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str[] = br.readLine().split(" ");
		x = Integer.parseInt(str[0]);
		y = Integer.parseInt(str[1]);

		d = x / y;
		r = x % y;
		f = 1.0 * x / y;

		System.out.printf("%1d %1d %1.5f",d, r, f);
    	} int x x y y d d r; r double f; 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 " " x = Integer.parseInt(str[0]) x Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 y = Integer.parseInt(str[1]) y Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 d = x / y d x / y x y r = x % y r x % y x y f = 1.0 * x / y f 1.0 * x / y 1.0 * x 1.0 x y System.out.printf("%1d %1d %1.5f",d, r, f) System.out.printf System.out System System.out "%1d %1d %1.5f" d r f String[] args args
import java.io.*;
  
class Main{
	public static void main(String[] args) throws IOException{

		int x,y,d,r;
		double f;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str[] = br.readLine().split(" ");
		x = Integer.parseInt(str[0]);
		y = Integer.parseInt(str[1]);

		d = x / y;
		r = x % y;
		f = 1.0 * x / y;

		System.out.printf("%1d %1d %1.5f",d, r, f);
    	}
}