import java.util.Scanner;
import java.math.BigDecimal;

public class Main{
    public static void main(String argv[])
    {
	Scanner scan = new Scanner(System.in);
	int a = scan.nextInt();
	int b = scan.nextInt();
	int d,r;
	double f;
		
	d = a / b;
	r = a % b;
	f = (double)a / b;
	
	BigDecimal x = new BigDecimal(f);
	x = x.setScale(6,BigDecimal.ROUND_HALF_UP);
	System.out.println(d+" "+r+" "+x);


    }
} import java.util.Scanner; Scanner java.util import java.math.BigDecimal; BigDecimal java.math public class Main{
    public static void main(String argv[])
    {
	Scanner scan = new Scanner(System.in);
	int a = scan.nextInt();
	int b = scan.nextInt();
	int d,r;
	double f;
		
	d = a / b;
	r = a % b;
	f = (double)a / b;
	
	BigDecimal x = new BigDecimal(f);
	x = x.setScale(6,BigDecimal.ROUND_HALF_UP);
	System.out.println(d+" "+r+" "+x);


    }
} Main public static void main(String argv[])
    {
	Scanner scan = new Scanner(System.in);
	int a = scan.nextInt();
	int b = scan.nextInt();
	int d,r;
	double f;
		
	d = a / b;
	r = a % b;
	f = (double)a / b;
	
	BigDecimal x = new BigDecimal(f);
	x = x.setScale(6,BigDecimal.ROUND_HALF_UP);
	System.out.println(d+" "+r+" "+x);


    } main {
	Scanner scan = new Scanner(System.in);
	int a = scan.nextInt();
	int b = scan.nextInt();
	int d,r;
	double f;
		
	d = a / b;
	r = a % b;
	f = (double)a / b;
	
	BigDecimal x = new BigDecimal(f);
	x = x.setScale(6,BigDecimal.ROUND_HALF_UP);
	System.out.println(d+" "+r+" "+x);


    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int d d r; r double f; f 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 BigDecimal x = new BigDecimal(f); x new BigDecimal(f) x = x.setScale(6,BigDecimal.ROUND_HALF_UP) x x.setScale(6,BigDecimal.ROUND_HALF_UP) x.setScale x 6 BigDecimal.ROUND_HALF_UP BigDecimal BigDecimal.ROUND_HALF_UP System.out.println(d+" "+r+" "+x) System.out.println System.out System System.out d+" "+r+" "+x " " r d+" "+r+" "+x d " " r " " x String argv[] argv public class Main{
    public static void main(String argv[])
    {
	Scanner scan = new Scanner(System.in);
	int a = scan.nextInt();
	int b = scan.nextInt();
	int d,r;
	double f;
		
	d = a / b;
	r = a % b;
	f = (double)a / b;
	
	BigDecimal x = new BigDecimal(f);
	x = x.setScale(6,BigDecimal.ROUND_HALF_UP);
	System.out.println(d+" "+r+" "+x);


    }
} public class Main{
    public static void main(String argv[])
    {
	Scanner scan = new Scanner(System.in);
	int a = scan.nextInt();
	int b = scan.nextInt();
	int d,r;
	double f;
		
	d = a / b;
	r = a % b;
	f = (double)a / b;
	
	BigDecimal x = new BigDecimal(f);
	x = x.setScale(6,BigDecimal.ROUND_HALF_UP);
	System.out.println(d+" "+r+" "+x);


    }
} Main
import java.util.Scanner;
import java.math.BigDecimal;

public class Main{
    public static void main(String argv[])
    {
	Scanner scan = new Scanner(System.in);
	int a = scan.nextInt();
	int b = scan.nextInt();
	int d,r;
	double f;
		
	d = a / b;
	r = a % b;
	f = (double)a / b;
	
	BigDecimal x = new BigDecimal(f);
	x = x.setScale(6,BigDecimal.ROUND_HALF_UP);
	System.out.println(d+" "+r+" "+x);


    }
}