import java.io.*;

class Main{
    public static void main(String[] args) throws Exception{

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String num1 = br.readLine();
        String[] num2 = num1.split(" ");

        int a = Integer.parseInt(num2[0]);
        int b = Integer.parseInt(num2[1]);

        int d = a / b;
        int r = a % b;
        double n = (double)a / b;
        String f = String.format("%.6f", n);

        System.out.println(d + " " + r + " " + f);
    }
} import java.io.*; io.* java class Main{
    public static void main(String[] args) throws Exception{

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String num1 = br.readLine();
        String[] num2 = num1.split(" ");

        int a = Integer.parseInt(num2[0]);
        int b = Integer.parseInt(num2[1]);

        int d = a / b;
        int r = a % b;
        double n = (double)a / b;
        String f = String.format("%.6f", n);

        System.out.println(d + " " + r + " " + f);
    }
} Main public static void main(String[] args) throws Exception{

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String num1 = br.readLine();
        String[] num2 = num1.split(" ");

        int a = Integer.parseInt(num2[0]);
        int b = Integer.parseInt(num2[1]);

        int d = a / b;
        int r = a % b;
        double n = (double)a / b;
        String f = String.format("%.6f", n);

        System.out.println(d + " " + r + " " + f);
    } main {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String num1 = br.readLine();
        String[] num2 = num1.split(" ");

        int a = Integer.parseInt(num2[0]);
        int b = Integer.parseInt(num2[1]);

        int d = a / b;
        int r = a % b;
        double n = (double)a / b;
        String f = String.format("%.6f", n);

        System.out.println(d + " " + r + " " + f);
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String num1 = br.readLine(); num1 br.readLine() br.readLine br String[] num2 = num1.split(" "); num2 num1.split(" ") num1.split num1 " " int a = Integer.parseInt(num2[0]); a Integer.parseInt(num2[0]) Integer.parseInt Integer num2[0] num2 0 int b = Integer.parseInt(num2[1]); b Integer.parseInt(num2[1]) Integer.parseInt Integer num2[1] num2 1 int d = a / b; d a / b a b int r = a % b; r a % b a b double n = (double)a / b; n (double)a / b (double)a b String f = String.format("%.6f", n); f String.format("%.6f", n) String.format String "%.6f" n System.out.println(d + " " + r + " " + f) System.out.println System.out System System.out d + " " + r + " " + f " " r d + " " + r + " " + f d " " r " " f String[] args args
import java.io.*;

class Main{
    public static void main(String[] args) throws Exception{

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String num1 = br.readLine();
        String[] num2 = num1.split(" ");

        int a = Integer.parseInt(num2[0]);
        int b = Integer.parseInt(num2[1]);

        int d = a / b;
        int r = a % b;
        double n = (double)a / b;
        String f = String.format("%.6f", n);

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