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[] a_b = str.split(" ", 0);

		int a = Integer.parseInt(a_b[0]);
		int b = Integer.parseInt(a_b[1]);
		double af = a;
		double bf = b;

		int d = a / b;
		int r = a % b;
		double f = af / bf;

		System.out.print(d + " " + r + " ");
		System.out.printf("%.6f", 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[] a_b = str.split(" ", 0);

		int a = Integer.parseInt(a_b[0]);
		int b = Integer.parseInt(a_b[1]);
		double af = a;
		double bf = b;

		int d = a / b;
		int r = a % b;
		double f = af / bf;

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

		int a = Integer.parseInt(a_b[0]);
		int b = Integer.parseInt(a_b[1]);
		double af = a;
		double bf = b;

		int d = a / b;
		int r = a % b;
		double f = af / bf;

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

		int a = Integer.parseInt(a_b[0]);
		int b = Integer.parseInt(a_b[1]);
		double af = a;
		double bf = b;

		int d = a / b;
		int r = a % b;
		double f = af / bf;

		System.out.print(d + " " + r + " ");
		System.out.printf("%.6f", 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[] a_b = str.split(" ", 0); a_b str.split(" ", 0) str.split str " " 0 int a = Integer.parseInt(a_b[0]); a Integer.parseInt(a_b[0]) Integer.parseInt Integer a_b[0] a_b 0 int b = Integer.parseInt(a_b[1]); b Integer.parseInt(a_b[1]) Integer.parseInt Integer a_b[1] a_b 1 double af = a; af a double bf = b; bf b int d = a / b; d a / b a b int r = a % b; r a % b a b double f = af / bf; f af / bf af bf System.out.print(d + " " + r + " ") System.out.print System.out System System.out d + " " + r + " " r d + " " + r + " " d " " r " " System.out.printf("%.6f", f) System.out.printf System.out System System.out "%.6f" 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[] a_b = str.split(" ", 0);

		int a = Integer.parseInt(a_b[0]);
		int b = Integer.parseInt(a_b[1]);
		double af = a;
		double bf = b;

		int d = a / b;
		int r = a % b;
		double f = af / bf;

		System.out.print(d + " " + r + " ");
		System.out.printf("%.6f", 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[] a_b = str.split(" ", 0);

		int a = Integer.parseInt(a_b[0]);
		int b = Integer.parseInt(a_b[1]);
		double af = a;
		double bf = b;

		int d = a / b;
		int r = a % b;
		double f = af / bf;

		System.out.print(d + " " + r + " ");
		System.out.printf("%.6f", 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[] a_b = str.split(" ", 0);

		int a = Integer.parseInt(a_b[0]);
		int b = Integer.parseInt(a_b[1]);
		double af = a;
		double bf = b;

		int d = a / b;
		int r = a % b;
		double f = af / bf;

		System.out.print(d + " " + r + " ");
		System.out.printf("%.6f", f);
	}
}