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

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String[] ln = line.split(" ");
        BigDecimal a = new BigDecimal(new Integer(ln[0]));
        BigDecimal b = new BigDecimal(new Integer(ln[1]));
        System.out.println(a.divideToIntegralValue(b).toPlainString() + " " + a.remainder(b).toPlainString() + " " + a.divide(b,10,RoundingMode.HALF_UP).toPlainString());
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.math.*; math.* java public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String[] ln = line.split(" ");
        BigDecimal a = new BigDecimal(new Integer(ln[0]));
        BigDecimal b = new BigDecimal(new Integer(ln[1]));
        System.out.println(a.divideToIntegralValue(b).toPlainString() + " " + a.remainder(b).toPlainString() + " " + a.divide(b,10,RoundingMode.HALF_UP).toPlainString());
    }
} Main public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String[] ln = line.split(" ");
        BigDecimal a = new BigDecimal(new Integer(ln[0]));
        BigDecimal b = new BigDecimal(new Integer(ln[1]));
        System.out.println(a.divideToIntegralValue(b).toPlainString() + " " + a.remainder(b).toPlainString() + " " + a.divide(b,10,RoundingMode.HALF_UP).toPlainString());
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String[] ln = line.split(" ");
        BigDecimal a = new BigDecimal(new Integer(ln[0]));
        BigDecimal b = new BigDecimal(new Integer(ln[1]));
        System.out.println(a.divideToIntegralValue(b).toPlainString() + " " + a.remainder(b).toPlainString() + " " + a.divide(b,10,RoundingMode.HALF_UP).toPlainString());
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line = br.readLine(); line br.readLine() br.readLine br String[] ln = line.split(" "); ln line.split(" ") line.split line " " BigDecimal a = new BigDecimal(new Integer(ln[0])); a new BigDecimal(new Integer(ln[0])) BigDecimal b = new BigDecimal(new Integer(ln[1])); b new BigDecimal(new Integer(ln[1])) System.out.println(a.divideToIntegralValue(b).toPlainString() + " " + a.remainder(b).toPlainString() + " " + a.divide(b,10,RoundingMode.HALF_UP).toPlainString()) System.out.println System.out System System.out a.divideToIntegralValue(b).toPlainString() + " " + a.remainder(b).toPlainString() + " " + a.divide(b,10,RoundingMode.HALF_UP).toPlainString() " " a.remainder(b).toPlainString() a.divideToIntegralValue(b).toPlainString() + " " + a.remainder(b).toPlainString() + " " + a.divide(b,10,RoundingMode.HALF_UP).toPlainString() a.divideToIntegralValue(b).toPlainString() a.divideToIntegralValue(b).toPlainString a.divideToIntegralValue(b) a.divideToIntegralValue a b " " a.remainder(b).toPlainString() a.remainder(b).toPlainString a.remainder(b) a.remainder a b " " a.divide(b,10,RoundingMode.HALF_UP).toPlainString() a.divide(b,10,RoundingMode.HALF_UP).toPlainString a.divide(b,10,RoundingMode.HALF_UP) a.divide a b 10 RoundingMode.HALF_UP RoundingMode RoundingMode.HALF_UP String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String[] ln = line.split(" ");
        BigDecimal a = new BigDecimal(new Integer(ln[0]));
        BigDecimal b = new BigDecimal(new Integer(ln[1]));
        System.out.println(a.divideToIntegralValue(b).toPlainString() + " " + a.remainder(b).toPlainString() + " " + a.divide(b,10,RoundingMode.HALF_UP).toPlainString());
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String[] ln = line.split(" ");
        BigDecimal a = new BigDecimal(new Integer(ln[0]));
        BigDecimal b = new BigDecimal(new Integer(ln[1]));
        System.out.println(a.divideToIntegralValue(b).toPlainString() + " " + a.remainder(b).toPlainString() + " " + a.divide(b,10,RoundingMode.HALF_UP).toPlainString());
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.math.*;

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String[] ln = line.split(" ");
        BigDecimal a = new BigDecimal(new Integer(ln[0]));
        BigDecimal b = new BigDecimal(new Integer(ln[1]));
        System.out.println(a.divideToIntegralValue(b).toPlainString() + " " + a.remainder(b).toPlainString() + " " + a.divide(b,10,RoundingMode.HALF_UP).toPlainString());
    }
}