import java.util.Scanner;

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