import java.util.Scanner;
import java.math.*;


/**
 * @author kawakami
 *
 */
class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner as = new Scanner(System.in);
	       
        int a;
        int b;
        int d,r;
        double f;

       
           
        a = as.nextInt();
        b = as.nextInt();

        d=a/b;
        r=a%b;
        double fa=(double)a;
        double fb=(double)b;
        f=fa/fb;
        
        //System.out.println(f);
        BigDecimal fr = new BigDecimal(f);
        
        
        //System.out.println(fr);
        
        fr = fr.setScale(6,BigDecimal.ROUND_HALF_UP);
        
        
       


        

    System.out.println(d+" "+r+" "+fr);

	}

} import java.util.Scanner; Scanner java.util import java.math.*; math.* java class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner as = new Scanner(System.in);
	       
        int a;
        int b;
        int d,r;
        double f;

       
           
        a = as.nextInt();
        b = as.nextInt();

        d=a/b;
        r=a%b;
        double fa=(double)a;
        double fb=(double)b;
        f=fa/fb;
        
        //System.out.println(f);
        BigDecimal fr = new BigDecimal(f);
        
        
        //System.out.println(fr);
        
        fr = fr.setScale(6,BigDecimal.ROUND_HALF_UP);
        
        
       


        

    System.out.println(d+" "+r+" "+fr);

	}

} Main /**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner as = new Scanner(System.in);
	       
        int a;
        int b;
        int d,r;
        double f;

       
           
        a = as.nextInt();
        b = as.nextInt();

        d=a/b;
        r=a%b;
        double fa=(double)a;
        double fb=(double)b;
        f=fa/fb;
        
        //System.out.println(f);
        BigDecimal fr = new BigDecimal(f);
        
        
        //System.out.println(fr);
        
        fr = fr.setScale(6,BigDecimal.ROUND_HALF_UP);
        
        
       


        

    System.out.println(d+" "+r+" "+fr);

	} main {
		// TODO Auto-generated method stub
		Scanner as = new Scanner(System.in);
	       
        int a;
        int b;
        int d,r;
        double f;

       
           
        a = as.nextInt();
        b = as.nextInt();

        d=a/b;
        r=a%b;
        double fa=(double)a;
        double fb=(double)b;
        f=fa/fb;
        
        //System.out.println(f);
        BigDecimal fr = new BigDecimal(f);
        
        
        //System.out.println(fr);
        
        fr = fr.setScale(6,BigDecimal.ROUND_HALF_UP);
        
        
       


        

    System.out.println(d+" "+r+" "+fr);

	} Scanner as = new Scanner(System.in); as new Scanner(System.in) int a; a int b; b int d d r; r double f; f a = as.nextInt() a as.nextInt() as.nextInt as b = as.nextInt() b as.nextInt() as.nextInt as d=a/b d a/b a b r=a%b r a%b a b double fa=(double)a; fa (double)a double fb=(double)b; fb (double)b f=fa/fb f fa/fb fa fb BigDecimal fr = new BigDecimal(f); fr new BigDecimal(f) fr = fr.setScale(6,BigDecimal.ROUND_HALF_UP) fr fr.setScale(6,BigDecimal.ROUND_HALF_UP) fr.setScale fr 6 BigDecimal.ROUND_HALF_UP BigDecimal BigDecimal.ROUND_HALF_UP System.out.println(d+" "+r+" "+fr) System.out.println System.out System System.out d+" "+r+" "+fr " " r d+" "+r+" "+fr d " " r " " fr String[] args args
import java.util.Scanner;
import java.math.*;


/**
 * @author kawakami
 *
 */
class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner as = new Scanner(System.in);
	       
        int a;
        int b;
        int d,r;
        double f;

       
           
        a = as.nextInt();
        b = as.nextInt();

        d=a/b;
        r=a%b;
        double fa=(double)a;
        double fb=(double)b;
        f=fa/fb;
        
        //System.out.println(f);
        BigDecimal fr = new BigDecimal(f);
        
        
        //System.out.println(fr);
        
        fr = fr.setScale(6,BigDecimal.ROUND_HALF_UP);
        
        
       


        

    System.out.println(d+" "+r+" "+fr);

	}

}