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[] tmp = br.readLine().split(" ");
		String a = tmp[0];
		String b = tmp[1];
		long d = Long.parseLong(a) / Long.parseLong(b);
		long r = Long.parseLong(a) % Long.parseLong(b);
		double f = Double.parseDouble(a) / Double.parseDouble(b);
		System.out.printf("%d %d %.5f", 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[] tmp = br.readLine().split(" ");
		String a = tmp[0];
		String b = tmp[1];
		long d = Long.parseLong(a) / Long.parseLong(b);
		long r = Long.parseLong(a) % Long.parseLong(b);
		double f = Double.parseDouble(a) / Double.parseDouble(b);
		System.out.printf("%d %d %.5f", d, r, f);
	}
} Main public static void main(String args[]) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] tmp = br.readLine().split(" ");
		String a = tmp[0];
		String b = tmp[1];
		long d = Long.parseLong(a) / Long.parseLong(b);
		long r = Long.parseLong(a) % Long.parseLong(b);
		double f = Double.parseDouble(a) / Double.parseDouble(b);
		System.out.printf("%d %d %.5f", d, r, f);
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] tmp = br.readLine().split(" ");
		String a = tmp[0];
		String b = tmp[1];
		long d = Long.parseLong(a) / Long.parseLong(b);
		long r = Long.parseLong(a) % Long.parseLong(b);
		double f = Double.parseDouble(a) / Double.parseDouble(b);
		System.out.printf("%d %d %.5f", d, r, f);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] tmp = br.readLine().split(" "); tmp br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " String a = tmp[0]; a tmp[0] tmp 0 String b = tmp[1]; b tmp[1] tmp 1 long d = Long.parseLong(a) / Long.parseLong(b); d Long.parseLong(a) / Long.parseLong(b) Long.parseLong(a) Long.parseLong Long a Long.parseLong(b) Long.parseLong Long b long r = Long.parseLong(a) % Long.parseLong(b); r Long.parseLong(a) % Long.parseLong(b) Long.parseLong(a) Long.parseLong Long a Long.parseLong(b) Long.parseLong Long b double f = Double.parseDouble(a) / Double.parseDouble(b); f Double.parseDouble(a) / Double.parseDouble(b) Double.parseDouble(a) Double.parseDouble Double a Double.parseDouble(b) Double.parseDouble Double b System.out.printf("%d %d %.5f", d, r, f) System.out.printf System.out System System.out "%d %d %.5f" 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[] tmp = br.readLine().split(" ");
		String a = tmp[0];
		String b = tmp[1];
		long d = Long.parseLong(a) / Long.parseLong(b);
		long r = Long.parseLong(a) % Long.parseLong(b);
		double f = Double.parseDouble(a) / Double.parseDouble(b);
		System.out.printf("%d %d %.5f", d, r, f);
	}
} public class Main {
	public static void main(String args[]) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] tmp = br.readLine().split(" ");
		String a = tmp[0];
		String b = tmp[1];
		long d = Long.parseLong(a) / Long.parseLong(b);
		long r = Long.parseLong(a) % Long.parseLong(b);
		double f = Double.parseDouble(a) / Double.parseDouble(b);
		System.out.printf("%d %d %.5f", 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[] tmp = br.readLine().split(" ");
		String a = tmp[0];
		String b = tmp[1];
		long d = Long.parseLong(a) / Long.parseLong(b);
		long r = Long.parseLong(a) % Long.parseLong(b);
		double f = Double.parseDouble(a) / Double.parseDouble(b);
		System.out.printf("%d %d %.5f", d, r, f);
	}
}