import java.io.*;

public class Main{
    public static void main(String[]args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();

        String[] str = br.readLine().split(" ");
        int a = Integer.parseInt(str[0]);
        int b = Integer.parseInt(str[1]);

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

        sb.append(d).append(" ").append(r).append(" ").append(f).append("\n");
        System.out.println(sb);
    }
} import java.io.*; io.* java public class Main{
    public static void main(String[]args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();

        String[] str = br.readLine().split(" ");
        int a = Integer.parseInt(str[0]);
        int b = Integer.parseInt(str[1]);

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

        sb.append(d).append(" ").append(r).append(" ").append(f).append("\n");
        System.out.println(sb);
    }
} Main public static void main(String[]args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();

        String[] str = br.readLine().split(" ");
        int a = Integer.parseInt(str[0]);
        int b = Integer.parseInt(str[1]);

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

        sb.append(d).append(" ").append(r).append(" ").append(f).append("\n");
        System.out.println(sb);
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();

        String[] str = br.readLine().split(" ");
        int a = Integer.parseInt(str[0]);
        int b = Integer.parseInt(str[1]);

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

        sb.append(d).append(" ").append(r).append(" ").append(f).append("\n");
        System.out.println(sb);
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) StringBuilder sb = new StringBuilder(); sb new StringBuilder() String[] str = br.readLine().split(" "); str br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int a = Integer.parseInt(str[0]); a Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 int b = Integer.parseInt(str[1]); b Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 int d = a / b; d a / b a b int r = a % b; r a % b a b String f = String.format("%.6f",(double) a / b); f String.format("%.6f",(double) a / b) String.format String "%.6f" (double) a / b (double) a b sb.append(d).append(" ").append(r).append(" ").append(f).append("\n") sb.append(d).append(" ").append(r).append(" ").append(f).append sb.append(d).append(" ").append(r).append(" ").append(f) sb.append(d).append(" ").append(r).append(" ").append sb.append(d).append(" ").append(r).append(" ") sb.append(d).append(" ").append(r).append sb.append(d).append(" ").append(r) sb.append(d).append(" ").append sb.append(d).append(" ") sb.append(d).append sb.append(d) sb.append sb d " " r " " f "\n" System.out.println(sb) System.out.println System.out System System.out sb String[]args args public class Main{
    public static void main(String[]args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();

        String[] str = br.readLine().split(" ");
        int a = Integer.parseInt(str[0]);
        int b = Integer.parseInt(str[1]);

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

        sb.append(d).append(" ").append(r).append(" ").append(f).append("\n");
        System.out.println(sb);
    }
} public class Main{
    public static void main(String[]args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();

        String[] str = br.readLine().split(" ");
        int a = Integer.parseInt(str[0]);
        int b = Integer.parseInt(str[1]);

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

        sb.append(d).append(" ").append(r).append(" ").append(f).append("\n");
        System.out.println(sb);
    }
} Main
import java.io.*;

public class Main{
    public static void main(String[]args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();

        String[] str = br.readLine().split(" ");
        int a = Integer.parseInt(str[0]);
        int b = Integer.parseInt(str[1]);

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

        sb.append(d).append(" ").append(r).append(" ").append(f).append("\n");
        System.out.println(sb);
    }
}