import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.math.BigDecimal;

public class Main {
	public static void main(String[] args) throws Exception {
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);

		String str = br.readLine();

		int x = Integer.parseInt(SubStringStart(str));
		int y = Integer.parseInt(SubStringEnd(str));
		BigDecimal k = new BigDecimal(SubStringStart(str));
		BigDecimal l = new BigDecimal(SubStringEnd(str));

		int d, r;
		String f;

		d = x / y;
		r = x % y;
		f=k.divide(l,8,BigDecimal.ROUND_HALF_UP).toPlainString();

		System.out.println(d + " " + r + " " + f);
	}

	//?¬¬????????°???????????????????????????
	public static String SubStringStart(String str) {
		int index = str.indexOf(" ");
		return (str.substring(0, index));
	}

	//	?¬¬????????°???????????????????????????
	public static String SubStringEnd(String str) {
		int index = str.lastIndexOf(" ");
		return (str.substring(index + 1));
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.math.BigDecimal; BigDecimal java.math public class Main {
	public static void main(String[] args) throws Exception {
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);

		String str = br.readLine();

		int x = Integer.parseInt(SubStringStart(str));
		int y = Integer.parseInt(SubStringEnd(str));
		BigDecimal k = new BigDecimal(SubStringStart(str));
		BigDecimal l = new BigDecimal(SubStringEnd(str));

		int d, r;
		String f;

		d = x / y;
		r = x % y;
		f=k.divide(l,8,BigDecimal.ROUND_HALF_UP).toPlainString();

		System.out.println(d + " " + r + " " + f);
	}

	//?¬¬????????°???????????????????????????
	public static String SubStringStart(String str) {
		int index = str.indexOf(" ");
		return (str.substring(0, index));
	}

	//	?¬¬????????°???????????????????????????
	public static String SubStringEnd(String str) {
		int index = str.lastIndexOf(" ");
		return (str.substring(index + 1));
	}
} Main public static void main(String[] args) throws Exception {
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);

		String str = br.readLine();

		int x = Integer.parseInt(SubStringStart(str));
		int y = Integer.parseInt(SubStringEnd(str));
		BigDecimal k = new BigDecimal(SubStringStart(str));
		BigDecimal l = new BigDecimal(SubStringEnd(str));

		int d, r;
		String f;

		d = x / y;
		r = x % y;
		f=k.divide(l,8,BigDecimal.ROUND_HALF_UP).toPlainString();

		System.out.println(d + " " + r + " " + f);
	} main {
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);

		String str = br.readLine();

		int x = Integer.parseInt(SubStringStart(str));
		int y = Integer.parseInt(SubStringEnd(str));
		BigDecimal k = new BigDecimal(SubStringStart(str));
		BigDecimal l = new BigDecimal(SubStringEnd(str));

		int d, r;
		String f;

		d = x / y;
		r = x % y;
		f=k.divide(l,8,BigDecimal.ROUND_HALF_UP).toPlainString();

		System.out.println(d + " " + r + " " + f);
	} InputStreamReader is = new InputStreamReader(System.in); is new InputStreamReader(System.in) BufferedReader br = new BufferedReader(is); br new BufferedReader(is) String str = br.readLine(); str br.readLine() br.readLine br int x = Integer.parseInt(SubStringStart(str)); x Integer.parseInt(SubStringStart(str)) Integer.parseInt Integer SubStringStart(str) SubStringStart str int y = Integer.parseInt(SubStringEnd(str)); y Integer.parseInt(SubStringEnd(str)) Integer.parseInt Integer SubStringEnd(str) SubStringEnd str BigDecimal k = new BigDecimal(SubStringStart(str)); k new BigDecimal(SubStringStart(str)) BigDecimal l = new BigDecimal(SubStringEnd(str)); l new BigDecimal(SubStringEnd(str)) int d d r; r String f; f d = x / y d x / y x y r = x % y r x % y x y f=k.divide(l,8,BigDecimal.ROUND_HALF_UP).toPlainString() f k.divide(l,8,BigDecimal.ROUND_HALF_UP).toPlainString() k.divide(l,8,BigDecimal.ROUND_HALF_UP).toPlainString k.divide(l,8,BigDecimal.ROUND_HALF_UP) k.divide k l 8 BigDecimal.ROUND_HALF_UP BigDecimal BigDecimal.ROUND_HALF_UP System.out.println(d + " " + r + " " + f) System.out.println System.out System System.out d + " " + r + " " + f " " r d + " " + r + " " + f d " " r " " f String[] args args //?¬¬????????°???????????????????????????
	public static String SubStringStart(String str) {
		int index = str.indexOf(" ");
		return (str.substring(0, index));
	} SubStringStart {
		int index = str.indexOf(" ");
		return (str.substring(0, index));
	} int index = str.indexOf(" "); index str.indexOf(" ") str.indexOf str " " return (str.substring(0, index)); (str.substring(0, index)) str.substring str 0 index String str str //	?¬¬????????°???????????????????????????
	public static String SubStringEnd(String str) {
		int index = str.lastIndexOf(" ");
		return (str.substring(index + 1));
	} SubStringEnd {
		int index = str.lastIndexOf(" ");
		return (str.substring(index + 1));
	} int index = str.lastIndexOf(" "); index str.lastIndexOf(" ") str.lastIndexOf str " " return (str.substring(index + 1)); (str.substring(index + 1)) str.substring str index + 1 index 1 String str str public class Main {
	public static void main(String[] args) throws Exception {
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);

		String str = br.readLine();

		int x = Integer.parseInt(SubStringStart(str));
		int y = Integer.parseInt(SubStringEnd(str));
		BigDecimal k = new BigDecimal(SubStringStart(str));
		BigDecimal l = new BigDecimal(SubStringEnd(str));

		int d, r;
		String f;

		d = x / y;
		r = x % y;
		f=k.divide(l,8,BigDecimal.ROUND_HALF_UP).toPlainString();

		System.out.println(d + " " + r + " " + f);
	}

	//?¬¬????????°???????????????????????????
	public static String SubStringStart(String str) {
		int index = str.indexOf(" ");
		return (str.substring(0, index));
	}

	//	?¬¬????????°???????????????????????????
	public static String SubStringEnd(String str) {
		int index = str.lastIndexOf(" ");
		return (str.substring(index + 1));
	}
} public class Main {
	public static void main(String[] args) throws Exception {
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);

		String str = br.readLine();

		int x = Integer.parseInt(SubStringStart(str));
		int y = Integer.parseInt(SubStringEnd(str));
		BigDecimal k = new BigDecimal(SubStringStart(str));
		BigDecimal l = new BigDecimal(SubStringEnd(str));

		int d, r;
		String f;

		d = x / y;
		r = x % y;
		f=k.divide(l,8,BigDecimal.ROUND_HALF_UP).toPlainString();

		System.out.println(d + " " + r + " " + f);
	}

	//?¬¬????????°???????????????????????????
	public static String SubStringStart(String str) {
		int index = str.indexOf(" ");
		return (str.substring(0, index));
	}

	//	?¬¬????????°???????????????????????????
	public static String SubStringEnd(String str) {
		int index = str.lastIndexOf(" ");
		return (str.substring(index + 1));
	}
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.math.BigDecimal;

public class Main {
	public static void main(String[] args) throws Exception {
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);

		String str = br.readLine();

		int x = Integer.parseInt(SubStringStart(str));
		int y = Integer.parseInt(SubStringEnd(str));
		BigDecimal k = new BigDecimal(SubStringStart(str));
		BigDecimal l = new BigDecimal(SubStringEnd(str));

		int d, r;
		String f;

		d = x / y;
		r = x % y;
		f=k.divide(l,8,BigDecimal.ROUND_HALF_UP).toPlainString();

		System.out.println(d + " " + r + " " + f);
	}

	//?¬¬????????°???????????????????????????
	public static String SubStringStart(String str) {
		int index = str.indexOf(" ");
		return (str.substring(0, index));
	}

	//	?¬¬????????°???????????????????????????
	public static String SubStringEnd(String str) {
		int index = str.lastIndexOf(" ");
		return (str.substring(index + 1));
	}
}