import java.util.Scanner;

public class Main {
 
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int d = a/b;
        int r = a%b;
        System.out.print(d+" "+r+" ");
        double f = (double)a/(double)b;
        System.out.printf("%.5f\n", f); 
        
        sc.close();
    }
}
 import java.util.Scanner; Scanner java.util public class Main {
 
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int d = a/b;
        int r = a%b;
        System.out.print(d+" "+r+" ");
        double f = (double)a/(double)b;
        System.out.printf("%.5f\n", f); 
        
        sc.close();
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int d = a/b;
        int r = a%b;
        System.out.print(d+" "+r+" ");
        double f = (double)a/(double)b;
        System.out.printf("%.5f\n", f); 
        
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int d = a/b;
        int r = a%b;
        System.out.print(d+" "+r+" ");
        double f = (double)a/(double)b;
        System.out.printf("%.5f\n", f); 
        
        sc.close();
    } 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 int d = a/b; d a/b a b int r = a%b; r a%b a b System.out.print(d+" "+r+" ") System.out.print System.out System System.out d+" "+r+" " r d+" "+r+" " d " " r " " double f = (double)a/(double)b; f (double)a/(double)b (double)a (double)b System.out.printf("%.5f\n", f) System.out.printf System.out System System.out "%.5f\n" f sc.close() sc.close sc String[] args args public class Main {
 
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int d = a/b;
        int r = a%b;
        System.out.print(d+" "+r+" ");
        double f = (double)a/(double)b;
        System.out.printf("%.5f\n", f); 
        
        sc.close();
    }
} public class Main {
 
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int d = a/b;
        int r = a%b;
        System.out.print(d+" "+r+" ");
        double f = (double)a/(double)b;
        System.out.printf("%.5f\n", f); 
        
        sc.close();
    }
} Main
import java.util.Scanner;

public class Main {
 
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int d = a/b;
        int r = a%b;
        System.out.print(d+" "+r+" ");
        double f = (double)a/(double)b;
        System.out.printf("%.5f\n", f); 
        
        sc.close();
    }
}

