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