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[] stra = str.split(" ");
		
		int a = Integer.parseInt(stra[0]);
		int b = Integer.parseInt(stra[1]);
		double f= (double)a/b;
		int d = a/b;
		int r = a%b;
		System.out.printf("%d %d %.7f",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[] stra = str.split(" ");
		
		int a = Integer.parseInt(stra[0]);
		int b = Integer.parseInt(stra[1]);
		double f= (double)a/b;
		int d = a/b;
		int r = a%b;
		System.out.printf("%d %d %.7f",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[] stra = str.split(" ");
		
		int a = Integer.parseInt(stra[0]);
		int b = Integer.parseInt(stra[1]);
		double f= (double)a/b;
		int d = a/b;
		int r = a%b;
		System.out.printf("%d %d %.7f",d,r,f);
	} main {
		BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
		String str =br.readLine();
		String[] stra = str.split(" ");
		
		int a = Integer.parseInt(stra[0]);
		int b = Integer.parseInt(stra[1]);
		double f= (double)a/b;
		int d = a/b;
		int r = a%b;
		System.out.printf("%d %d %.7f",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[] stra = str.split(" "); stra str.split(" ") str.split str " " int a = Integer.parseInt(stra[0]); a Integer.parseInt(stra[0]) Integer.parseInt Integer stra[0] stra 0 int b = Integer.parseInt(stra[1]); b Integer.parseInt(stra[1]) Integer.parseInt Integer stra[1] stra 1 double f= (double)a/b; f (double)a/b (double)a b int d = a/b; d a/b a b int r = a%b; r a%b a b System.out.printf("%d %d %.7f",d,r,f) System.out.printf System.out System System.out "%d %d %.7f" 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[] stra = str.split(" ");
		
		int a = Integer.parseInt(stra[0]);
		int b = Integer.parseInt(stra[1]);
		double f= (double)a/b;
		int d = a/b;
		int r = a%b;
		System.out.printf("%d %d %.7f",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[] stra = str.split(" ");
		
		int a = Integer.parseInt(stra[0]);
		int b = Integer.parseInt(stra[1]);
		double f= (double)a/b;
		int d = a/b;
		int r = a%b;
		System.out.printf("%d %d %.7f",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[] stra = str.split(" ");
		
		int a = Integer.parseInt(stra[0]);
		int b = Integer.parseInt(stra[1]);
		double f= (double)a/b;
		int d = a/b;
		int r = a%b;
		System.out.printf("%d %d %.7f",d,r,f);
	}

}