import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] lines = sc.nextLine().split(" ");
        long num1 = Integer.parseInt(lines[0]);
        long num2 = Integer.parseInt(lines[1]);

        long ans1 = num1 / num2;
        long ans2 = num1 % num2;
        double ans3 = (double)num1 / (double)num2;

        System.out.println(ans1 + " " + ans2 + " " + String.format("%.9f", ans3));


    }
} import java.math.BigDecimal; BigDecimal java.math import java.math.RoundingMode; RoundingMode java.math import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] lines = sc.nextLine().split(" ");
        long num1 = Integer.parseInt(lines[0]);
        long num2 = Integer.parseInt(lines[1]);

        long ans1 = num1 / num2;
        long ans2 = num1 % num2;
        double ans3 = (double)num1 / (double)num2;

        System.out.println(ans1 + " " + ans2 + " " + String.format("%.9f", ans3));


    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] lines = sc.nextLine().split(" ");
        long num1 = Integer.parseInt(lines[0]);
        long num2 = Integer.parseInt(lines[1]);

        long ans1 = num1 / num2;
        long ans2 = num1 % num2;
        double ans3 = (double)num1 / (double)num2;

        System.out.println(ans1 + " " + ans2 + " " + String.format("%.9f", ans3));


    } main {
        Scanner sc = new Scanner(System.in);
        String[] lines = sc.nextLine().split(" ");
        long num1 = Integer.parseInt(lines[0]);
        long num2 = Integer.parseInt(lines[1]);

        long ans1 = num1 / num2;
        long ans2 = num1 % num2;
        double ans3 = (double)num1 / (double)num2;

        System.out.println(ans1 + " " + ans2 + " " + String.format("%.9f", ans3));


    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] lines = sc.nextLine().split(" "); lines sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " long num1 = Integer.parseInt(lines[0]); num1 Integer.parseInt(lines[0]) Integer.parseInt Integer lines[0] lines 0 long num2 = Integer.parseInt(lines[1]); num2 Integer.parseInt(lines[1]) Integer.parseInt Integer lines[1] lines 1 long ans1 = num1 / num2; ans1 num1 / num2 num1 num2 long ans2 = num1 % num2; ans2 num1 % num2 num1 num2 double ans3 = (double)num1 / (double)num2; ans3 (double)num1 / (double)num2 (double)num1 (double)num2 System.out.println(ans1 + " " + ans2 + " " + String.format("%.9f", ans3)) System.out.println System.out System System.out ans1 + " " + ans2 + " " + String.format("%.9f", ans3) " " ans2 ans1 + " " + ans2 + " " + String.format("%.9f", ans3) ans1 " " ans2 " " String.format("%.9f", ans3) String.format String "%.9f" ans3 String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] lines = sc.nextLine().split(" ");
        long num1 = Integer.parseInt(lines[0]);
        long num2 = Integer.parseInt(lines[1]);

        long ans1 = num1 / num2;
        long ans2 = num1 % num2;
        double ans3 = (double)num1 / (double)num2;

        System.out.println(ans1 + " " + ans2 + " " + String.format("%.9f", ans3));


    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] lines = sc.nextLine().split(" ");
        long num1 = Integer.parseInt(lines[0]);
        long num2 = Integer.parseInt(lines[1]);

        long ans1 = num1 / num2;
        long ans2 = num1 % num2;
        double ans3 = (double)num1 / (double)num2;

        System.out.println(ans1 + " " + ans2 + " " + String.format("%.9f", ans3));


    }
} Main
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] lines = sc.nextLine().split(" ");
        long num1 = Integer.parseInt(lines[0]);
        long num2 = Integer.parseInt(lines[1]);

        long ans1 = num1 / num2;
        long ans2 = num1 % num2;
        double ans3 = (double)num1 / (double)num2;

        System.out.println(ans1 + " " + ans2 + " " + String.format("%.9f", ans3));


    }
}