import java.util.*;
import java.text.*;
class Main {
    public static void main(String[]args)throws Exception {
        Scanner sc = new Scanner(System.in);
        // this got WA
        // int a = sc.nextInt();
        // int b = sc.nextInt();
        // System.out.println("" + (a/b) + " " + (a%b) + " " + (a/(double)b));

        // this is OK
        int a = sc.nextInt();
        int b = sc.nextInt();
        NumberFormat format = NumberFormat.getInstance();
        format.setMaximumFractionDigits(5);
        format.setMinimumFractionDigits(5);
        format.setGroupingUsed(false);

        System.out.println("" + (a/b) + " " + (a%b) + " " + format.format(a/(double)b));

        // this is also OK
        // long a = sc.nextInt();
        // long b = sc.nextInt();
        // long a00000 = a * 100000;
        // long c = a00000 / b;
        // long d = c / 100000;
        // long f = c % 100000;
        // String sf = ""+f;
        // while(sf.length() < 5) sf = "0" + sf;
        // System.out.println("" + (a/b) + " " + (a%b) + " " + d + "." + sf);
    }
} import java.util.*; util.* java import java.text.*; text.* java class Main {
    public static void main(String[]args)throws Exception {
        Scanner sc = new Scanner(System.in);
        // this got WA
        // int a = sc.nextInt();
        // int b = sc.nextInt();
        // System.out.println("" + (a/b) + " " + (a%b) + " " + (a/(double)b));

        // this is OK
        int a = sc.nextInt();
        int b = sc.nextInt();
        NumberFormat format = NumberFormat.getInstance();
        format.setMaximumFractionDigits(5);
        format.setMinimumFractionDigits(5);
        format.setGroupingUsed(false);

        System.out.println("" + (a/b) + " " + (a%b) + " " + format.format(a/(double)b));

        // this is also OK
        // long a = sc.nextInt();
        // long b = sc.nextInt();
        // long a00000 = a * 100000;
        // long c = a00000 / b;
        // long d = c / 100000;
        // long f = c % 100000;
        // String sf = ""+f;
        // while(sf.length() < 5) sf = "0" + sf;
        // System.out.println("" + (a/b) + " " + (a%b) + " " + d + "." + sf);
    }
} Main public static void main(String[]args)throws Exception {
        Scanner sc = new Scanner(System.in);
        // this got WA
        // int a = sc.nextInt();
        // int b = sc.nextInt();
        // System.out.println("" + (a/b) + " " + (a%b) + " " + (a/(double)b));

        // this is OK
        int a = sc.nextInt();
        int b = sc.nextInt();
        NumberFormat format = NumberFormat.getInstance();
        format.setMaximumFractionDigits(5);
        format.setMinimumFractionDigits(5);
        format.setGroupingUsed(false);

        System.out.println("" + (a/b) + " " + (a%b) + " " + format.format(a/(double)b));

        // this is also OK
        // long a = sc.nextInt();
        // long b = sc.nextInt();
        // long a00000 = a * 100000;
        // long c = a00000 / b;
        // long d = c / 100000;
        // long f = c % 100000;
        // String sf = ""+f;
        // while(sf.length() < 5) sf = "0" + sf;
        // System.out.println("" + (a/b) + " " + (a%b) + " " + d + "." + sf);
    } main {
        Scanner sc = new Scanner(System.in);
        // this got WA
        // int a = sc.nextInt();
        // int b = sc.nextInt();
        // System.out.println("" + (a/b) + " " + (a%b) + " " + (a/(double)b));

        // this is OK
        int a = sc.nextInt();
        int b = sc.nextInt();
        NumberFormat format = NumberFormat.getInstance();
        format.setMaximumFractionDigits(5);
        format.setMinimumFractionDigits(5);
        format.setGroupingUsed(false);

        System.out.println("" + (a/b) + " " + (a%b) + " " + format.format(a/(double)b));

        // this is also OK
        // long a = sc.nextInt();
        // long b = sc.nextInt();
        // long a00000 = a * 100000;
        // long c = a00000 / b;
        // long d = c / 100000;
        // long f = c % 100000;
        // String sf = ""+f;
        // while(sf.length() < 5) sf = "0" + sf;
        // System.out.println("" + (a/b) + " " + (a%b) + " " + d + "." + sf);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc NumberFormat format = NumberFormat.getInstance(); format NumberFormat.getInstance() NumberFormat.getInstance NumberFormat format.setMaximumFractionDigits(5) format.setMaximumFractionDigits format 5 format.setMinimumFractionDigits(5) format.setMinimumFractionDigits format 5 format.setGroupingUsed(false) format.setGroupingUsed format false System.out.println("" + (a/b) + " " + (a%b) + " " + format.format(a/(double)b)) System.out.println System.out System System.out "" + (a/b) + " " + (a%b) + " " + format.format(a/(double)b) " " (a%b) " " "" + (a/b) + " " + (a%b) + " " + format.format(a/(double)b) "" (a/b) a b " " (a%b) a b " " format.format(a/(double)b) format.format format a/(double)b a (double)b String[]args args
import java.util.*;
import java.text.*;
class Main {
    public static void main(String[]args)throws Exception {
        Scanner sc = new Scanner(System.in);
        // this got WA
        // int a = sc.nextInt();
        // int b = sc.nextInt();
        // System.out.println("" + (a/b) + " " + (a%b) + " " + (a/(double)b));

        // this is OK
        int a = sc.nextInt();
        int b = sc.nextInt();
        NumberFormat format = NumberFormat.getInstance();
        format.setMaximumFractionDigits(5);
        format.setMinimumFractionDigits(5);
        format.setGroupingUsed(false);

        System.out.println("" + (a/b) + " " + (a%b) + " " + format.format(a/(double)b));

        // this is also OK
        // long a = sc.nextInt();
        // long b = sc.nextInt();
        // long a00000 = a * 100000;
        // long c = a00000 / b;
        // long d = c / 100000;
        // long f = c % 100000;
        // String sf = ""+f;
        // while(sf.length() < 5) sf = "0" + sf;
        // System.out.println("" + (a/b) + " " + (a%b) + " " + d + "." + sf);
    }
}