//A / B Problem
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main {

	public static void main(String[] args) throws IOException {

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		String[] ab = in.readLine().split(" ");
		int a = Integer.parseInt(ab[0]);
		int b = Integer.parseInt(ab[1]);

//		int a= 1000000000;
//		int b =1;

		int d = a/b;
		int r = a%b;
//		double f =((int)(((double)a/(double)b)*10000))/10000;
		double f = (double)a/(double)b;
		
		System.out.print(d+" "+r+" ");
		System.out.printf("%.6f\n",f);


	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io class Main {

	public static void main(String[] args) throws IOException {

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		String[] ab = in.readLine().split(" ");
		int a = Integer.parseInt(ab[0]);
		int b = Integer.parseInt(ab[1]);

//		int a= 1000000000;
//		int b =1;

		int d = a/b;
		int r = a%b;
//		double f =((int)(((double)a/(double)b)*10000))/10000;
		double f = (double)a/(double)b;
		
		System.out.print(d+" "+r+" ");
		System.out.printf("%.6f\n",f);


	}
} Main public static void main(String[] args) throws IOException {

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		String[] ab = in.readLine().split(" ");
		int a = Integer.parseInt(ab[0]);
		int b = Integer.parseInt(ab[1]);

//		int a= 1000000000;
//		int b =1;

		int d = a/b;
		int r = a%b;
//		double f =((int)(((double)a/(double)b)*10000))/10000;
		double f = (double)a/(double)b;
		
		System.out.print(d+" "+r+" ");
		System.out.printf("%.6f\n",f);


	} main {

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		String[] ab = in.readLine().split(" ");
		int a = Integer.parseInt(ab[0]);
		int b = Integer.parseInt(ab[1]);

//		int a= 1000000000;
//		int b =1;

		int d = a/b;
		int r = a%b;
//		double f =((int)(((double)a/(double)b)*10000))/10000;
		double f = (double)a/(double)b;
		
		System.out.print(d+" "+r+" ");
		System.out.printf("%.6f\n",f);


	} BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) String[] ab = in.readLine().split(" "); ab in.readLine().split(" ") in.readLine().split in.readLine() in.readLine in " " int a = Integer.parseInt(ab[0]); a Integer.parseInt(ab[0]) Integer.parseInt Integer ab[0] ab 0 int b = Integer.parseInt(ab[1]); b Integer.parseInt(ab[1]) Integer.parseInt Integer ab[1] ab 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.print(d+" "+r+" ") System.out.print System.out System System.out d+" "+r+" " r d+" "+r+" " d " " r " " System.out.printf("%.6f\n",f) System.out.printf System.out System System.out "%.6f\n" f String[] args args
//A / B Problem
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main {

	public static void main(String[] args) throws IOException {

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		String[] ab = in.readLine().split(" ");
		int a = Integer.parseInt(ab[0]);
		int b = Integer.parseInt(ab[1]);

//		int a= 1000000000;
//		int b =1;

		int d = a/b;
		int r = a%b;
//		double f =((int)(((double)a/(double)b)*10000))/10000;
		double f = (double)a/(double)b;
		
		System.out.print(d+" "+r+" ");
		System.out.printf("%.6f\n",f);


	}
}