import java.io.*;

class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String input = br.readLine();
		String[] cut = input.split(" ");
		int a = Integer.parseInt(cut[0]);
		int b = Integer.parseInt(cut[1]);
		
		int d =a/b;
		int r = a%b;
		double f =(double)a/(double)b;
		
		String g = String.format("%.5f",f);
		System.out.println(d+" "+r+" "+g);
	}
} import java.io.*; io.* java class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String input = br.readLine();
		String[] cut = input.split(" ");
		int a = Integer.parseInt(cut[0]);
		int b = Integer.parseInt(cut[1]);
		
		int d =a/b;
		int r = a%b;
		double f =(double)a/(double)b;
		
		String g = String.format("%.5f",f);
		System.out.println(d+" "+r+" "+g);
	}
} Main public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String input = br.readLine();
		String[] cut = input.split(" ");
		int a = Integer.parseInt(cut[0]);
		int b = Integer.parseInt(cut[1]);
		
		int d =a/b;
		int r = a%b;
		double f =(double)a/(double)b;
		
		String g = String.format("%.5f",f);
		System.out.println(d+" "+r+" "+g);
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String input = br.readLine();
		String[] cut = input.split(" ");
		int a = Integer.parseInt(cut[0]);
		int b = Integer.parseInt(cut[1]);
		
		int d =a/b;
		int r = a%b;
		double f =(double)a/(double)b;
		
		String g = String.format("%.5f",f);
		System.out.println(d+" "+r+" "+g);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String input = br.readLine(); input br.readLine() br.readLine br String[] cut = input.split(" "); cut input.split(" ") input.split input " " int a = Integer.parseInt(cut[0]); a Integer.parseInt(cut[0]) Integer.parseInt Integer cut[0] cut 0 int b = Integer.parseInt(cut[1]); b Integer.parseInt(cut[1]) Integer.parseInt Integer cut[1] cut 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 String g = String.format("%.5f",f); g String.format("%.5f",f) String.format String "%.5f" f System.out.println(d+" "+r+" "+g) System.out.println System.out System System.out d+" "+r+" "+g " " r d+" "+r+" "+g d " " r " " g String[] args args
import java.io.*;

class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String input = br.readLine();
		String[] cut = input.split(" ");
		int a = Integer.parseInt(cut[0]);
		int b = Integer.parseInt(cut[1]);
		
		int d =a/b;
		int r = a%b;
		double f =(double)a/(double)b;
		
		String g = String.format("%.5f",f);
		System.out.println(d+" "+r+" "+g);
	}
}