import java.io.*;

public class Main {

    public static void main(String[] args) throws IOException {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] line = br.readLine().split(" ");
        int a = Integer.parseInt(line[0]);
        int b = Integer.parseInt(line[1]);

        int d, r;
        double f;

        d = (int) ((int) a / b);
        r = (int) (a % b);
        f = (double) a / (double) b;

        System.out.printf("%d %d %.5f", d, r, f);

    }

} import java.io.*; io.* java public class Main {

    public static void main(String[] args) throws IOException {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] line = br.readLine().split(" ");
        int a = Integer.parseInt(line[0]);
        int b = Integer.parseInt(line[1]);

        int d, r;
        double f;

        d = (int) ((int) a / b);
        r = (int) (a % b);
        f = (double) a / (double) b;

        System.out.printf("%d %d %.5f", d, r, f);

    }

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

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] line = br.readLine().split(" ");
        int a = Integer.parseInt(line[0]);
        int b = Integer.parseInt(line[1]);

        int d, r;
        double f;

        d = (int) ((int) a / b);
        r = (int) (a % b);
        f = (double) a / (double) b;

        System.out.printf("%d %d %.5f", d, r, f);

    } main {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] line = br.readLine().split(" ");
        int a = Integer.parseInt(line[0]);
        int b = Integer.parseInt(line[1]);

        int d, r;
        double f;

        d = (int) ((int) a / b);
        r = (int) (a % b);
        f = (double) a / (double) b;

        System.out.printf("%d %d %.5f", d, r, f);

    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] line = br.readLine().split(" "); line br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int a = Integer.parseInt(line[0]); a Integer.parseInt(line[0]) Integer.parseInt Integer line[0] line 0 int b = Integer.parseInt(line[1]); b Integer.parseInt(line[1]) Integer.parseInt Integer line[1] line 1 int d d r; r double f; f d = (int) ((int) a / b) d (int) ((int) a / b) (int) a b r = (int) (a % b) r (int) (a % b) a b f = (double) a / (double) b f (double) a / (double) b (double) a (double) b System.out.printf("%d %d %.5f", d, r, f) System.out.printf System.out System System.out "%d %d %.5f" d r f String[] args args public class Main {

    public static void main(String[] args) throws IOException {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] line = br.readLine().split(" ");
        int a = Integer.parseInt(line[0]);
        int b = Integer.parseInt(line[1]);

        int d, r;
        double f;

        d = (int) ((int) a / b);
        r = (int) (a % b);
        f = (double) a / (double) b;

        System.out.printf("%d %d %.5f", d, r, f);

    }

} public class Main {

    public static void main(String[] args) throws IOException {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] line = br.readLine().split(" ");
        int a = Integer.parseInt(line[0]);
        int b = Integer.parseInt(line[1]);

        int d, r;
        double f;

        d = (int) ((int) a / b);
        r = (int) (a % b);
        f = (double) a / (double) b;

        System.out.printf("%d %d %.5f", d, r, f);

    }

} Main
import java.io.*;

public class Main {

    public static void main(String[] args) throws IOException {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] line = br.readLine().split(" ");
        int a = Integer.parseInt(line[0]);
        int b = Integer.parseInt(line[1]);

        int d, r;
        double f;

        d = (int) ((int) a / b);
        r = (int) (a % b);
        f = (double) a / (double) b;

        System.out.printf("%d %d %.5f", d, r, f);

    }

}