import java.util.*;
import java.math.BigDecimal;
import java.math.MathContext;
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;
	double f = (double)a/(double)b;



	System.out.print(d + " " + r + " ");
	System.out.printf("%8f\n",f);
  }
	


} import java.util.*; util.* java import java.math.BigDecimal; BigDecimal java.math import java.math.MathContext; MathContext java.math 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;
	double f = (double)a/(double)b;



	System.out.print(d + " " + r + " ");
	System.out.printf("%8f\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 = a / b;
	int r = a % b;
	double f = (double)a/(double)b;



	System.out.print(d + " " + r + " ");
	System.out.printf("%8f\n",f);
  } main {
    Scanner sc = new Scanner(System.in);
    
	int a = sc.nextInt();
	int b = sc.nextInt();
        int d = a / b;
	int r = a % b;
	double f = (double)a/(double)b;



	System.out.print(d + " " + r + " ");
	System.out.printf("%8f\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 = a / b; d a / b a b int r = a % b; r a % b a b double f = (double)a/(double)b; f (double)a/(double)b (double)a (double)b System.out.print(d + " " + r + " ") System.out.print System.out System System.out d + " " + r + " " r d + " " + r + " " d " " r " " System.out.printf("%8f\n",f) System.out.printf System.out System System.out "%8f\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 = a / b;
	int r = a % b;
	double f = (double)a/(double)b;



	System.out.print(d + " " + r + " ");
	System.out.printf("%8f\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 = a / b;
	int r = a % b;
	double f = (double)a/(double)b;



	System.out.print(d + " " + r + " ");
	System.out.printf("%8f\n",f);
  }
	


} Main
import java.util.*;
import java.math.BigDecimal;
import java.math.MathContext;
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;
	double f = (double)a/(double)b;



	System.out.print(d + " " + r + " ");
	System.out.printf("%8f\n",f);
  }
	


}