import java.util.Scanner;
class Main {
    private static Scanner sc;

	public static void main(String[] args) {
        sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int d = a / b;
        int r = a % b;
        double f = (double)a / b;
        System.out.println(String.format("%d %d %.5f", d, r, f));
    }
} import java.util.Scanner; Scanner java.util class Main {
    private static Scanner sc;

	public static void main(String[] args) {
        sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int d = a / b;
        int r = a % b;
        double f = (double)a / b;
        System.out.println(String.format("%d %d %.5f", d, r, f));
    }
} Main private static Scanner sc; sc public static void main(String[] args) {
        sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int d = a / b;
        int r = a % b;
        double f = (double)a / b;
        System.out.println(String.format("%d %d %.5f", d, r, f));
    } main {
        sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int d = a / b;
        int r = a % b;
        double f = (double)a / b;
        System.out.println(String.format("%d %d %.5f", d, r, f));
    } sc = new Scanner(System.in) sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int d = a / b; d a / b a b int r = a % b; r a % b a b double f = (double)a / b; f (double)a / b (double)a b System.out.println(String.format("%d %d %.5f", d, r, f)) System.out.println System.out System System.out String.format("%d %d %.5f", d, r, f) String.format String "%d %d %.5f" d r f String[] args args
import java.util.Scanner;
class Main {
    private static Scanner sc;

	public static void main(String[] args) {
        sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int d = a / b;
        int r = a % b;
        double f = (double)a / b;
        System.out.println(String.format("%d %d %.5f", d, r, f));
    }
}