import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.lang.Math;

public class Main {
    public static void main(String[] args) {
        try {
            BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));
            
            String line;
            
            while((line = stdReader.readLine()) != null) {
                String[] input = line.split(" ", 0);
                long a = Long.parseLong(input[0]);
                long b = Long.parseLong(input[1]);
                
                long d = a / b;
                long r = a % b;
                double f = (double)a / (double)b;
                String after = String.format("%.5f", f);
                System.out.println(d + " " + r + " " + after);
            }
            stdReader.close();
        } catch(Exception e) {
            e.getStackTrace();
            System.exit(-1);
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.lang.Math; Math java.lang public class Main {
    public static void main(String[] args) {
        try {
            BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));
            
            String line;
            
            while((line = stdReader.readLine()) != null) {
                String[] input = line.split(" ", 0);
                long a = Long.parseLong(input[0]);
                long b = Long.parseLong(input[1]);
                
                long d = a / b;
                long r = a % b;
                double f = (double)a / (double)b;
                String after = String.format("%.5f", f);
                System.out.println(d + " " + r + " " + after);
            }
            stdReader.close();
        } catch(Exception e) {
            e.getStackTrace();
            System.exit(-1);
        }
    }
} Main public static void main(String[] args) {
        try {
            BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));
            
            String line;
            
            while((line = stdReader.readLine()) != null) {
                String[] input = line.split(" ", 0);
                long a = Long.parseLong(input[0]);
                long b = Long.parseLong(input[1]);
                
                long d = a / b;
                long r = a % b;
                double f = (double)a / (double)b;
                String after = String.format("%.5f", f);
                System.out.println(d + " " + r + " " + after);
            }
            stdReader.close();
        } catch(Exception e) {
            e.getStackTrace();
            System.exit(-1);
        }
    } main {
        try {
            BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));
            
            String line;
            
            while((line = stdReader.readLine()) != null) {
                String[] input = line.split(" ", 0);
                long a = Long.parseLong(input[0]);
                long b = Long.parseLong(input[1]);
                
                long d = a / b;
                long r = a % b;
                double f = (double)a / (double)b;
                String after = String.format("%.5f", f);
                System.out.println(d + " " + r + " " + after);
            }
            stdReader.close();
        } catch(Exception e) {
            e.getStackTrace();
            System.exit(-1);
        }
    } try {
            BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));
            
            String line;
            
            while((line = stdReader.readLine()) != null) {
                String[] input = line.split(" ", 0);
                long a = Long.parseLong(input[0]);
                long b = Long.parseLong(input[1]);
                
                long d = a / b;
                long r = a % b;
                double f = (double)a / (double)b;
                String after = String.format("%.5f", f);
                System.out.println(d + " " + r + " " + after);
            }
            stdReader.close();
        } catch(Exception e) {
            e.getStackTrace();
            System.exit(-1);
        } catch(Exception e) {
            e.getStackTrace();
            System.exit(-1);
        } Exception e {
            e.getStackTrace();
            System.exit(-1);
        } e.getStackTrace() e.getStackTrace e System.exit(-1) System.exit System -1 1 {
            BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));
            
            String line;
            
            while((line = stdReader.readLine()) != null) {
                String[] input = line.split(" ", 0);
                long a = Long.parseLong(input[0]);
                long b = Long.parseLong(input[1]);
                
                long d = a / b;
                long r = a % b;
                double f = (double)a / (double)b;
                String after = String.format("%.5f", f);
                System.out.println(d + " " + r + " " + after);
            }
            stdReader.close();
        } BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in)); stdReader new BufferedReader(new InputStreamReader(System.in)) String line; line while((line = stdReader.readLine()) != null) {
                String[] input = line.split(" ", 0);
                long a = Long.parseLong(input[0]);
                long b = Long.parseLong(input[1]);
                
                long d = a / b;
                long r = a % b;
                double f = (double)a / (double)b;
                String after = String.format("%.5f", f);
                System.out.println(d + " " + r + " " + after);
            } (line = stdReader.readLine()) != null (line = stdReader.readLine()) line stdReader.readLine() stdReader.readLine stdReader null {
                String[] input = line.split(" ", 0);
                long a = Long.parseLong(input[0]);
                long b = Long.parseLong(input[1]);
                
                long d = a / b;
                long r = a % b;
                double f = (double)a / (double)b;
                String after = String.format("%.5f", f);
                System.out.println(d + " " + r + " " + after);
            } String[] input = line.split(" ", 0); input line.split(" ", 0) line.split line " " 0 long a = Long.parseLong(input[0]); a Long.parseLong(input[0]) Long.parseLong Long input[0] input 0 long b = Long.parseLong(input[1]); b Long.parseLong(input[1]) Long.parseLong Long input[1] input 1 long d = a / b; d a / b a b long r = a % b; r a % b a b double f = (double)a / (double)b; f (double)a / (double)b (double)a (double)b String after = String.format("%.5f", f); after String.format("%.5f", f) String.format String "%.5f" f System.out.println(d + " " + r + " " + after) System.out.println System.out System System.out d + " " + r + " " + after " " r d + " " + r + " " + after d " " r " " after stdReader.close() stdReader.close stdReader String[] args args public class Main {
    public static void main(String[] args) {
        try {
            BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));
            
            String line;
            
            while((line = stdReader.readLine()) != null) {
                String[] input = line.split(" ", 0);
                long a = Long.parseLong(input[0]);
                long b = Long.parseLong(input[1]);
                
                long d = a / b;
                long r = a % b;
                double f = (double)a / (double)b;
                String after = String.format("%.5f", f);
                System.out.println(d + " " + r + " " + after);
            }
            stdReader.close();
        } catch(Exception e) {
            e.getStackTrace();
            System.exit(-1);
        }
    }
} public class Main {
    public static void main(String[] args) {
        try {
            BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));
            
            String line;
            
            while((line = stdReader.readLine()) != null) {
                String[] input = line.split(" ", 0);
                long a = Long.parseLong(input[0]);
                long b = Long.parseLong(input[1]);
                
                long d = a / b;
                long r = a % b;
                double f = (double)a / (double)b;
                String after = String.format("%.5f", f);
                System.out.println(d + " " + r + " " + after);
            }
            stdReader.close();
        } catch(Exception e) {
            e.getStackTrace();
            System.exit(-1);
        }
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.lang.Math;

public class Main {
    public static void main(String[] args) {
        try {
            BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));
            
            String line;
            
            while((line = stdReader.readLine()) != null) {
                String[] input = line.split(" ", 0);
                long a = Long.parseLong(input[0]);
                long b = Long.parseLong(input[1]);
                
                long d = a / b;
                long r = a % b;
                double f = (double)a / (double)b;
                String after = String.format("%.5f", f);
                System.out.println(d + " " + r + " " + after);
            }
            stdReader.close();
        } catch(Exception e) {
            e.getStackTrace();
            System.exit(-1);
        }
    }
}