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

public class Main {

	public static void main(String[] args) {

        try {
            BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
            String inputData = reader.readLine();
			String[] strNumber = inputData.split(" ");
			int a = Integer.parseInt(strNumber[0]);
			int b = Integer.parseInt(strNumber[1]);
			BigDecimal bdA = new BigDecimal(a);
			BigDecimal bdB = new BigDecimal(b);

			int d = a / b;
			int r = a % b;
			BigDecimal bdDivide = bdA.divide(bdB , 8 , BigDecimal.ROUND_HALF_UP).setScale(8, BigDecimal.ROUND_FLOOR);

            System.out.println(d + " " + r + " " + bdDivide.toPlainString());

        } catch (IOException e) {
            e.printStackTrace();
        }


	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException 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) {

        try {
            BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
            String inputData = reader.readLine();
			String[] strNumber = inputData.split(" ");
			int a = Integer.parseInt(strNumber[0]);
			int b = Integer.parseInt(strNumber[1]);
			BigDecimal bdA = new BigDecimal(a);
			BigDecimal bdB = new BigDecimal(b);

			int d = a / b;
			int r = a % b;
			BigDecimal bdDivide = bdA.divide(bdB , 8 , BigDecimal.ROUND_HALF_UP).setScale(8, BigDecimal.ROUND_FLOOR);

            System.out.println(d + " " + r + " " + bdDivide.toPlainString());

        } catch (IOException e) {
            e.printStackTrace();
        }


	}

} Main public static void main(String[] args) {

        try {
            BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
            String inputData = reader.readLine();
			String[] strNumber = inputData.split(" ");
			int a = Integer.parseInt(strNumber[0]);
			int b = Integer.parseInt(strNumber[1]);
			BigDecimal bdA = new BigDecimal(a);
			BigDecimal bdB = new BigDecimal(b);

			int d = a / b;
			int r = a % b;
			BigDecimal bdDivide = bdA.divide(bdB , 8 , BigDecimal.ROUND_HALF_UP).setScale(8, BigDecimal.ROUND_FLOOR);

            System.out.println(d + " " + r + " " + bdDivide.toPlainString());

        } catch (IOException e) {
            e.printStackTrace();
        }


	} main {

        try {
            BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
            String inputData = reader.readLine();
			String[] strNumber = inputData.split(" ");
			int a = Integer.parseInt(strNumber[0]);
			int b = Integer.parseInt(strNumber[1]);
			BigDecimal bdA = new BigDecimal(a);
			BigDecimal bdB = new BigDecimal(b);

			int d = a / b;
			int r = a % b;
			BigDecimal bdDivide = bdA.divide(bdB , 8 , BigDecimal.ROUND_HALF_UP).setScale(8, BigDecimal.ROUND_FLOOR);

            System.out.println(d + " " + r + " " + bdDivide.toPlainString());

        } catch (IOException e) {
            e.printStackTrace();
        }


	} try {
            BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
            String inputData = reader.readLine();
			String[] strNumber = inputData.split(" ");
			int a = Integer.parseInt(strNumber[0]);
			int b = Integer.parseInt(strNumber[1]);
			BigDecimal bdA = new BigDecimal(a);
			BigDecimal bdB = new BigDecimal(b);

			int d = a / b;
			int r = a % b;
			BigDecimal bdDivide = bdA.divide(bdB , 8 , BigDecimal.ROUND_HALF_UP).setScale(8, BigDecimal.ROUND_FLOOR);

            System.out.println(d + " " + r + " " + bdDivide.toPlainString());

        } catch (IOException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        } IOException e {
            e.printStackTrace();
        } e.printStackTrace() e.printStackTrace e {
            BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
            String inputData = reader.readLine();
			String[] strNumber = inputData.split(" ");
			int a = Integer.parseInt(strNumber[0]);
			int b = Integer.parseInt(strNumber[1]);
			BigDecimal bdA = new BigDecimal(a);
			BigDecimal bdB = new BigDecimal(b);

			int d = a / b;
			int r = a % b;
			BigDecimal bdDivide = bdA.divide(bdB , 8 , BigDecimal.ROUND_HALF_UP).setScale(8, BigDecimal.ROUND_FLOOR);

            System.out.println(d + " " + r + " " + bdDivide.toPlainString());

        } BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) String inputData = reader.readLine(); inputData reader.readLine() reader.readLine reader String[] strNumber = inputData.split(" "); strNumber inputData.split(" ") inputData.split inputData " " int a = Integer.parseInt(strNumber[0]); a Integer.parseInt(strNumber[0]) Integer.parseInt Integer strNumber[0] strNumber 0 int b = Integer.parseInt(strNumber[1]); b Integer.parseInt(strNumber[1]) Integer.parseInt Integer strNumber[1] strNumber 1 BigDecimal bdA = new BigDecimal(a); bdA new BigDecimal(a) BigDecimal bdB = new BigDecimal(b); bdB new BigDecimal(b) int d = a / b; d a / b a b int r = a % b; r a % b a b BigDecimal bdDivide = bdA.divide(bdB , 8 , BigDecimal.ROUND_HALF_UP).setScale(8, BigDecimal.ROUND_FLOOR); bdDivide bdA.divide(bdB , 8 , BigDecimal.ROUND_HALF_UP).setScale(8, BigDecimal.ROUND_FLOOR) bdA.divide(bdB , 8 , BigDecimal.ROUND_HALF_UP).setScale bdA.divide(bdB , 8 , BigDecimal.ROUND_HALF_UP) bdA.divide bdA bdB 8 BigDecimal.ROUND_HALF_UP BigDecimal BigDecimal.ROUND_HALF_UP 8 BigDecimal.ROUND_FLOOR BigDecimal BigDecimal.ROUND_FLOOR System.out.println(d + " " + r + " " + bdDivide.toPlainString()) System.out.println System.out System System.out d + " " + r + " " + bdDivide.toPlainString() " " r d + " " + r + " " + bdDivide.toPlainString() d " " r " " bdDivide.toPlainString() bdDivide.toPlainString bdDivide String[] args args public class Main {

	public static void main(String[] args) {

        try {
            BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
            String inputData = reader.readLine();
			String[] strNumber = inputData.split(" ");
			int a = Integer.parseInt(strNumber[0]);
			int b = Integer.parseInt(strNumber[1]);
			BigDecimal bdA = new BigDecimal(a);
			BigDecimal bdB = new BigDecimal(b);

			int d = a / b;
			int r = a % b;
			BigDecimal bdDivide = bdA.divide(bdB , 8 , BigDecimal.ROUND_HALF_UP).setScale(8, BigDecimal.ROUND_FLOOR);

            System.out.println(d + " " + r + " " + bdDivide.toPlainString());

        } catch (IOException e) {
            e.printStackTrace();
        }


	}

} public class Main {

	public static void main(String[] args) {

        try {
            BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
            String inputData = reader.readLine();
			String[] strNumber = inputData.split(" ");
			int a = Integer.parseInt(strNumber[0]);
			int b = Integer.parseInt(strNumber[1]);
			BigDecimal bdA = new BigDecimal(a);
			BigDecimal bdB = new BigDecimal(b);

			int d = a / b;
			int r = a % b;
			BigDecimal bdDivide = bdA.divide(bdB , 8 , BigDecimal.ROUND_HALF_UP).setScale(8, BigDecimal.ROUND_FLOOR);

            System.out.println(d + " " + r + " " + bdDivide.toPlainString());

        } catch (IOException e) {
            e.printStackTrace();
        }


	}

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigDecimal;

public class Main {

	public static void main(String[] args) {

        try {
            BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
            String inputData = reader.readLine();
			String[] strNumber = inputData.split(" ");
			int a = Integer.parseInt(strNumber[0]);
			int b = Integer.parseInt(strNumber[1]);
			BigDecimal bdA = new BigDecimal(a);
			BigDecimal bdB = new BigDecimal(b);

			int d = a / b;
			int r = a % b;
			BigDecimal bdDivide = bdA.divide(bdB , 8 , BigDecimal.ROUND_HALF_UP).setScale(8, BigDecimal.ROUND_FLOOR);

            System.out.println(d + " " + r + " " + bdDivide.toPlainString());

        } catch (IOException e) {
            e.printStackTrace();
        }


	}

}