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