import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] s = str.split(" ");

		int a = Integer.parseInt(s[0]);
		int b = Integer.parseInt(s[1]);

		if((0 < a) && (b < Math.pow(10,9))){ //10???9???
			int d = a / b;
			int r = a % b;
			double f = ((double)a / b);


			System.out.printf("%d %d %05f",d ,r ,f);
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader 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[] s = str.split(" ");

		int a = Integer.parseInt(s[0]);
		int b = Integer.parseInt(s[1]);

		if((0 < a) && (b < Math.pow(10,9))){ //10???9???
			int d = a / b;
			int r = a % b;
			double f = ((double)a / b);


			System.out.printf("%d %d %05f",d ,r ,f);
		}
	}
} Main public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] s = str.split(" ");

		int a = Integer.parseInt(s[0]);
		int b = Integer.parseInt(s[1]);

		if((0 < a) && (b < Math.pow(10,9))){ //10???9???
			int d = a / b;
			int r = a % b;
			double f = ((double)a / b);


			System.out.printf("%d %d %05f",d ,r ,f);
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] s = str.split(" ");

		int a = Integer.parseInt(s[0]);
		int b = Integer.parseInt(s[1]);

		if((0 < a) && (b < Math.pow(10,9))){ //10???9???
			int d = a / b;
			int r = a % b;
			double f = ((double)a / b);


			System.out.printf("%d %d %05f",d ,r ,f);
		}
	} 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[] s = str.split(" "); s str.split(" ") str.split str " " int a = Integer.parseInt(s[0]); a Integer.parseInt(s[0]) Integer.parseInt Integer s[0] s 0 int b = Integer.parseInt(s[1]); b Integer.parseInt(s[1]) Integer.parseInt Integer s[1] s 1 if((0 < a) && (b < Math.pow(10,9))){ //10???9???
			int d = a / b;
			int r = a % b;
			double f = ((double)a / b);


			System.out.printf("%d %d %05f",d ,r ,f);
		} (0 < a) && (b < Math.pow(10,9)) (0 < a) 0 a (b < Math.pow(10,9)) b Math.pow(10,9) Math.pow Math 10 9 { //10???9???
			int d = a / b;
			int r = a % b;
			double f = ((double)a / b);


			System.out.printf("%d %d %05f",d ,r ,f);
		} int d = a / b; d a / b a b int r = a % b; r a % b a b double f = ((double)a / b); f ((double)a / b) (double)a b System.out.printf("%d %d %05f",d ,r ,f) System.out.printf System.out System System.out "%d %d %05f" d r f 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[] s = str.split(" ");

		int a = Integer.parseInt(s[0]);
		int b = Integer.parseInt(s[1]);

		if((0 < a) && (b < Math.pow(10,9))){ //10???9???
			int d = a / b;
			int r = a % b;
			double f = ((double)a / b);


			System.out.printf("%d %d %05f",d ,r ,f);
		}
	}
} public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] s = str.split(" ");

		int a = Integer.parseInt(s[0]);
		int b = Integer.parseInt(s[1]);

		if((0 < a) && (b < Math.pow(10,9))){ //10???9???
			int d = a / b;
			int r = a % b;
			double f = ((double)a / b);


			System.out.printf("%d %d %05f",d ,r ,f);
		}
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] s = str.split(" ");

		int a = Integer.parseInt(s[0]);
		int b = Integer.parseInt(s[1]);

		if((0 < a) && (b < Math.pow(10,9))){ //10???9???
			int d = a / b;
			int r = a % b;
			double f = ((double)a / b);


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