import java.text.DecimalFormat;
import java.util.*;

public class Main {
    public static void main(String[] args)  throws java.io.IOException{
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        sc.close();

        DecimalFormat df1 = new DecimalFormat("0.00000");
        Double c = a*1.0/b;
        System.out.println(a/b + " " +a%b  + " " + df1.format(c));
    }
} import java.text.DecimalFormat; DecimalFormat java.text import java.util.*; util.* java public class Main {
    public static void main(String[] args)  throws java.io.IOException{
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        sc.close();

        DecimalFormat df1 = new DecimalFormat("0.00000");
        Double c = a*1.0/b;
        System.out.println(a/b + " " +a%b  + " " + df1.format(c));
    }
} Main public static void main(String[] args)  throws java.io.IOException{
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        sc.close();

        DecimalFormat df1 = new DecimalFormat("0.00000");
        Double c = a*1.0/b;
        System.out.println(a/b + " " +a%b  + " " + df1.format(c));
    } main {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        sc.close();

        DecimalFormat df1 = new DecimalFormat("0.00000");
        Double c = a*1.0/b;
        System.out.println(a/b + " " +a%b  + " " + df1.format(c));
    } Scanner 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 sc.close() sc.close sc DecimalFormat df1 = new DecimalFormat("0.00000"); df1 new DecimalFormat("0.00000") Double c = a*1.0/b; c a*1.0/b a*1.0 a 1.0 b System.out.println(a/b + " " +a%b  + " " + df1.format(c)) System.out.println System.out System System.out a/b + " " +a%b  + " " + df1.format(c) " " a%b a/b + " " +a%b  + " " + df1.format(c) a/b a b " " a%b a b " " df1.format(c) df1.format df1 c String[] args args public class Main {
    public static void main(String[] args)  throws java.io.IOException{
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        sc.close();

        DecimalFormat df1 = new DecimalFormat("0.00000");
        Double c = a*1.0/b;
        System.out.println(a/b + " " +a%b  + " " + df1.format(c));
    }
} public class Main {
    public static void main(String[] args)  throws java.io.IOException{
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        sc.close();

        DecimalFormat df1 = new DecimalFormat("0.00000");
        Double c = a*1.0/b;
        System.out.println(a/b + " " +a%b  + " " + df1.format(c));
    }
} Main
import java.text.DecimalFormat;
import java.util.*;

public class Main {
    public static void main(String[] args)  throws java.io.IOException{
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        sc.close();

        DecimalFormat df1 = new DecimalFormat("0.00000");
        Double c = a*1.0/b;
        System.out.println(a/b + " " +a%b  + " " + df1.format(c));
    }
}