import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br =
            new BufferedReader(new InputStreamReader(System.in), 1);
        String is = br.readLine();
        String[] sp = is.split(" ");

        int a = Integer.parseInt(sp[0]);
        int b = Integer.parseInt(sp[1]);
        int d =a/b;
        int r = a%b;
        double f = (double)a/(double)b;
        String fs = String.format("%.8f", f);

        System.out.println(d + " " + r + " "+ fs);
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br =
            new BufferedReader(new InputStreamReader(System.in), 1);
        String is = br.readLine();
        String[] sp = is.split(" ");

        int a = Integer.parseInt(sp[0]);
        int b = Integer.parseInt(sp[1]);
        int d =a/b;
        int r = a%b;
        double f = (double)a/(double)b;
        String fs = String.format("%.8f", f);

        System.out.println(d + " " + r + " "+ fs);
    }
} Main public static void main(String[] args) throws IOException {
        BufferedReader br =
            new BufferedReader(new InputStreamReader(System.in), 1);
        String is = br.readLine();
        String[] sp = is.split(" ");

        int a = Integer.parseInt(sp[0]);
        int b = Integer.parseInt(sp[1]);
        int d =a/b;
        int r = a%b;
        double f = (double)a/(double)b;
        String fs = String.format("%.8f", f);

        System.out.println(d + " " + r + " "+ fs);
    } main {
        BufferedReader br =
            new BufferedReader(new InputStreamReader(System.in), 1);
        String is = br.readLine();
        String[] sp = is.split(" ");

        int a = Integer.parseInt(sp[0]);
        int b = Integer.parseInt(sp[1]);
        int d =a/b;
        int r = a%b;
        double f = (double)a/(double)b;
        String fs = String.format("%.8f", f);

        System.out.println(d + " " + r + " "+ fs);
    } BufferedReader br =
            new BufferedReader(new InputStreamReader(System.in), 1); br new BufferedReader(new InputStreamReader(System.in), 1) String is = br.readLine(); is br.readLine() br.readLine br String[] sp = is.split(" "); sp is.split(" ") is.split is " " int a = Integer.parseInt(sp[0]); a Integer.parseInt(sp[0]) Integer.parseInt Integer sp[0] sp 0 int b = Integer.parseInt(sp[1]); b Integer.parseInt(sp[1]) Integer.parseInt Integer sp[1] sp 1 int d =a/b; d a/b a b int r = a%b; r a%b a b double f = (double)a/(double)b; f (double)a/(double)b (double)a (double)b String fs = String.format("%.8f", f); fs String.format("%.8f", f) String.format String "%.8f" f System.out.println(d + " " + r + " "+ fs) System.out.println System.out System System.out d + " " + r + " "+ fs " " r d + " " + r + " "+ fs d " " r " " fs String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br =
            new BufferedReader(new InputStreamReader(System.in), 1);
        String is = br.readLine();
        String[] sp = is.split(" ");

        int a = Integer.parseInt(sp[0]);
        int b = Integer.parseInt(sp[1]);
        int d =a/b;
        int r = a%b;
        double f = (double)a/(double)b;
        String fs = String.format("%.8f", f);

        System.out.println(d + " " + r + " "+ fs);
    }
}