import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = Integer.parseInt(scanner.next());
        int b = Integer.parseInt(scanner.next());

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

        System.out.println(d + " " + r + " " + String.format("%.5f", f));
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = Integer.parseInt(scanner.next());
        int b = Integer.parseInt(scanner.next());

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

        System.out.println(d + " " + r + " " + String.format("%.5f", f));
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = Integer.parseInt(scanner.next());
        int b = Integer.parseInt(scanner.next());

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

        System.out.println(d + " " + r + " " + String.format("%.5f", f));
    } main {
        Scanner scanner = new Scanner(System.in);
        int a = Integer.parseInt(scanner.next());
        int b = Integer.parseInt(scanner.next());

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

        System.out.println(d + " " + r + " " + String.format("%.5f", f));
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int a = Integer.parseInt(scanner.next()); a Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner int b = Integer.parseInt(scanner.next()); b Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner 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 System.out.println(d + " " + r + " " + String.format("%.5f", f)) System.out.println System.out System System.out d + " " + r + " " + String.format("%.5f", f) " " r d + " " + r + " " + String.format("%.5f", f) d " " r " " String.format("%.5f", f) String.format String "%.5f" f String[] args args public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = Integer.parseInt(scanner.next());
        int b = Integer.parseInt(scanner.next());

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

        System.out.println(d + " " + r + " " + String.format("%.5f", f));
    }
} public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = Integer.parseInt(scanner.next());
        int b = Integer.parseInt(scanner.next());

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

        System.out.println(d + " " + r + " " + String.format("%.5f", f));
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = Integer.parseInt(scanner.next());
        int b = Integer.parseInt(scanner.next());

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

        System.out.println(d + " " + r + " " + String.format("%.5f", f));
    }
}