import java.io.*;
import java.lang.Integer;
public class Main {
	public static void main(String[] args) {
		try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
			String in  = br.readLine() ;
			String[] numStr = in.split(" ");
			int[] num = new int[2];
			num[0] = Integer.parseInt(numStr[0]);
			num[1] = Integer.parseInt(numStr[1]);
			int a1 = num[0]/num[1];
			int a2 = num[0]%num[1];
			double f1 = num[1];
			f1 = num[0]/f1;
			System.out.printf("%d %d %9.5f" , a1, a2, f1);
		} catch ( IOException e ) {
			System.out.println("??¨??????????????????????????????");
		}
	}
} import java.io.*; io.* java import java.lang.Integer; Integer java.lang public class Main {
	public static void main(String[] args) {
		try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
			String in  = br.readLine() ;
			String[] numStr = in.split(" ");
			int[] num = new int[2];
			num[0] = Integer.parseInt(numStr[0]);
			num[1] = Integer.parseInt(numStr[1]);
			int a1 = num[0]/num[1];
			int a2 = num[0]%num[1];
			double f1 = num[1];
			f1 = num[0]/f1;
			System.out.printf("%d %d %9.5f" , a1, a2, f1);
		} catch ( IOException e ) {
			System.out.println("??¨??????????????????????????????");
		}
	}
} Main public static void main(String[] args) {
		try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
			String in  = br.readLine() ;
			String[] numStr = in.split(" ");
			int[] num = new int[2];
			num[0] = Integer.parseInt(numStr[0]);
			num[1] = Integer.parseInt(numStr[1]);
			int a1 = num[0]/num[1];
			int a2 = num[0]%num[1];
			double f1 = num[1];
			f1 = num[0]/f1;
			System.out.printf("%d %d %9.5f" , a1, a2, f1);
		} catch ( IOException e ) {
			System.out.println("??¨??????????????????????????????");
		}
	} main {
		try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
			String in  = br.readLine() ;
			String[] numStr = in.split(" ");
			int[] num = new int[2];
			num[0] = Integer.parseInt(numStr[0]);
			num[1] = Integer.parseInt(numStr[1]);
			int a1 = num[0]/num[1];
			int a2 = num[0]%num[1];
			double f1 = num[1];
			f1 = num[0]/f1;
			System.out.printf("%d %d %9.5f" , a1, a2, f1);
		} catch ( IOException e ) {
			System.out.println("??¨??????????????????????????????");
		}
	} try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
			String in  = br.readLine() ;
			String[] numStr = in.split(" ");
			int[] num = new int[2];
			num[0] = Integer.parseInt(numStr[0]);
			num[1] = Integer.parseInt(numStr[1]);
			int a1 = num[0]/num[1];
			int a2 = num[0]%num[1];
			double f1 = num[1];
			f1 = num[0]/f1;
			System.out.printf("%d %d %9.5f" , a1, a2, f1);
		} catch ( IOException e ) {
			System.out.println("??¨??????????????????????????????");
		} catch ( IOException e ) {
			System.out.println("??¨??????????????????????????????");
		} IOException e {
			System.out.println("??¨??????????????????????????????");
		} System.out.println("??¨??????????????????????????????") System.out.println System.out System System.out "??¨??????????????????????????????" {
			String in  = br.readLine() ;
			String[] numStr = in.split(" ");
			int[] num = new int[2];
			num[0] = Integer.parseInt(numStr[0]);
			num[1] = Integer.parseInt(numStr[1]);
			int a1 = num[0]/num[1];
			int a2 = num[0]%num[1];
			double f1 = num[1];
			f1 = num[0]/f1;
			System.out.printf("%d %d %9.5f" , a1, a2, f1);
		} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) new BufferedReader(new InputStreamReader(System.in)) String in  = br.readLine() ; in br.readLine() br.readLine br String[] numStr = in.split(" "); numStr in.split(" ") in.split in " " int[] num = new int[2]; num new int[2] 2 num[0] = Integer.parseInt(numStr[0]) num[0] num 0 Integer.parseInt(numStr[0]) Integer.parseInt Integer numStr[0] numStr 0 num[1] = Integer.parseInt(numStr[1]) num[1] num 1 Integer.parseInt(numStr[1]) Integer.parseInt Integer numStr[1] numStr 1 int a1 = num[0]/num[1]; a1 num[0]/num[1] num[0] num 0 num[1] num 1 int a2 = num[0]%num[1]; a2 num[0]%num[1] num[0] num 0 num[1] num 1 double f1 = num[1]; f1 num[1] num 1 f1 = num[0]/f1 f1 num[0]/f1 num[0] num 0 f1 System.out.printf("%d %d %9.5f" , a1, a2, f1) System.out.printf System.out System System.out "%d %d %9.5f" a1 a2 f1 String[] args args public class Main {
	public static void main(String[] args) {
		try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
			String in  = br.readLine() ;
			String[] numStr = in.split(" ");
			int[] num = new int[2];
			num[0] = Integer.parseInt(numStr[0]);
			num[1] = Integer.parseInt(numStr[1]);
			int a1 = num[0]/num[1];
			int a2 = num[0]%num[1];
			double f1 = num[1];
			f1 = num[0]/f1;
			System.out.printf("%d %d %9.5f" , a1, a2, f1);
		} catch ( IOException e ) {
			System.out.println("??¨??????????????????????????????");
		}
	}
} public class Main {
	public static void main(String[] args) {
		try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
			String in  = br.readLine() ;
			String[] numStr = in.split(" ");
			int[] num = new int[2];
			num[0] = Integer.parseInt(numStr[0]);
			num[1] = Integer.parseInt(numStr[1]);
			int a1 = num[0]/num[1];
			int a2 = num[0]%num[1];
			double f1 = num[1];
			f1 = num[0]/f1;
			System.out.printf("%d %d %9.5f" , a1, a2, f1);
		} catch ( IOException e ) {
			System.out.println("??¨??????????????????????????????");
		}
	}
} Main
import java.io.*;
import java.lang.Integer;
public class Main {
	public static void main(String[] args) {
		try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
			String in  = br.readLine() ;
			String[] numStr = in.split(" ");
			int[] num = new int[2];
			num[0] = Integer.parseInt(numStr[0]);
			num[1] = Integer.parseInt(numStr[1]);
			int a1 = num[0]/num[1];
			int a2 = num[0]%num[1];
			double f1 = num[1];
			f1 = num[0]/f1;
			System.out.printf("%d %d %9.5f" , a1, a2, f1);
		} catch ( IOException e ) {
			System.out.println("??¨??????????????????????????????");
		}
	}
}