import java.util.Scanner;
class Main{
    public static void main(String[] args){
        
        int d,r;
        double f = 0;

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

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

        Scanner sc = new Scanner(System.in);
        
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        d = a / b;
        r = a % b;
        f = (double)a / b;
        
        
        System.out.println(d + " " + r + " " + (String.format("%.5f",f)));
    } main {
        
        int d,r;
        double f = 0;

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

        Scanner sc = new Scanner(System.in);
        
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        d = a / b;
        r = a % b;
        f = (double)a / b;
        
        
        System.out.println(d + " " + r + " " + (String.format("%.5f",f)));
    }
}

