import java.math.BigDecimal;
import java.text.DecimalFormat;
import java.util.Scanner;

class Main{

    public static void main(String[] args) {

        int a,b;

        Scanner scan = new Scanner(System.in);

        a = scan.nextInt();
        b = scan.nextInt();

        BigDecimal aa = new BigDecimal(a);
        BigDecimal bb = new BigDecimal(b);

        //BigDecimal div = new BigDecimal("0.00000000");

        BigDecimal div = aa.divide(bb, 8, BigDecimal.ROUND_HALF_UP);

        DecimalFormat format = new DecimalFormat("#.#");
        //format.setMinimumFractionDigits(8);//?°?????????¨???8????????§??????
        format.setMaximumFractionDigits(8);//?????§8????????§??????

        System.out.println(a/b + " " + a%b + " "+ format.format(div) );
        scan.close();
    }
} import java.math.BigDecimal; BigDecimal java.math import java.text.DecimalFormat; DecimalFormat java.text import java.util.Scanner; Scanner java.util class Main{

    public static void main(String[] args) {

        int a,b;

        Scanner scan = new Scanner(System.in);

        a = scan.nextInt();
        b = scan.nextInt();

        BigDecimal aa = new BigDecimal(a);
        BigDecimal bb = new BigDecimal(b);

        //BigDecimal div = new BigDecimal("0.00000000");

        BigDecimal div = aa.divide(bb, 8, BigDecimal.ROUND_HALF_UP);

        DecimalFormat format = new DecimalFormat("#.#");
        //format.setMinimumFractionDigits(8);//?°?????????¨???8????????§??????
        format.setMaximumFractionDigits(8);//?????§8????????§??????

        System.out.println(a/b + " " + a%b + " "+ format.format(div) );
        scan.close();
    }
} Main public static void main(String[] args) {

        int a,b;

        Scanner scan = new Scanner(System.in);

        a = scan.nextInt();
        b = scan.nextInt();

        BigDecimal aa = new BigDecimal(a);
        BigDecimal bb = new BigDecimal(b);

        //BigDecimal div = new BigDecimal("0.00000000");

        BigDecimal div = aa.divide(bb, 8, BigDecimal.ROUND_HALF_UP);

        DecimalFormat format = new DecimalFormat("#.#");
        //format.setMinimumFractionDigits(8);//?°?????????¨???8????????§??????
        format.setMaximumFractionDigits(8);//?????§8????????§??????

        System.out.println(a/b + " " + a%b + " "+ format.format(div) );
        scan.close();
    } main {

        int a,b;

        Scanner scan = new Scanner(System.in);

        a = scan.nextInt();
        b = scan.nextInt();

        BigDecimal aa = new BigDecimal(a);
        BigDecimal bb = new BigDecimal(b);

        //BigDecimal div = new BigDecimal("0.00000000");

        BigDecimal div = aa.divide(bb, 8, BigDecimal.ROUND_HALF_UP);

        DecimalFormat format = new DecimalFormat("#.#");
        //format.setMinimumFractionDigits(8);//?°?????????¨???8????????§??????
        format.setMaximumFractionDigits(8);//?????§8????????§??????

        System.out.println(a/b + " " + a%b + " "+ format.format(div) );
        scan.close();
    } int a a b; b Scanner scan = new Scanner(System.in); scan new Scanner(System.in) a = scan.nextInt() a scan.nextInt() scan.nextInt scan b = scan.nextInt() b scan.nextInt() scan.nextInt scan BigDecimal aa = new BigDecimal(a); aa new BigDecimal(a) BigDecimal bb = new BigDecimal(b); bb new BigDecimal(b) BigDecimal div = aa.divide(bb, 8, BigDecimal.ROUND_HALF_UP); div aa.divide(bb, 8, BigDecimal.ROUND_HALF_UP) aa.divide aa bb 8 BigDecimal.ROUND_HALF_UP BigDecimal BigDecimal.ROUND_HALF_UP DecimalFormat format = new DecimalFormat("#.#"); format new DecimalFormat("#.#") format.setMaximumFractionDigits(8) format.setMaximumFractionDigits format 8 System.out.println(a/b + " " + a%b + " "+ format.format(div) ) System.out.println System.out System System.out a/b + " " + a%b + " "+ format.format(div) " " a%b a/b + " " + a%b + " "+ format.format(div) a/b a b " " a%b a b " " format.format(div) format.format format div scan.close() scan.close scan String[] args args
import java.math.BigDecimal;
import java.text.DecimalFormat;
import java.util.Scanner;

class Main{

    public static void main(String[] args) {

        int a,b;

        Scanner scan = new Scanner(System.in);

        a = scan.nextInt();
        b = scan.nextInt();

        BigDecimal aa = new BigDecimal(a);
        BigDecimal bb = new BigDecimal(b);

        //BigDecimal div = new BigDecimal("0.00000000");

        BigDecimal div = aa.divide(bb, 8, BigDecimal.ROUND_HALF_UP);

        DecimalFormat format = new DecimalFormat("#.#");
        //format.setMinimumFractionDigits(8);//?°?????????¨???8????????§??????
        format.setMaximumFractionDigits(8);//?????§8????????§??????

        System.out.println(a/b + " " + a%b + " "+ format.format(div) );
        scan.close();
    }
}