import java.io.*;

class Main{
 public static void main(String[] args)throws IOException{
  int a,b,d,r;
  String f;
   BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  
   String str = br.readLine(); 
   String[] strAry = str.split(" ");
   a = Integer.parseInt(strAry[0]);  
   b = Integer.parseInt(strAry[1]);   
   d = a/b;
   r = a%b;
   f=String.format("%.5f", ((double)a / (double)b));    
   
   f = String.format("%.5f", ((double)a / (double)b));
   System.out.println(d + " "+ r +" "+ f); 
 }
} import java.io.*; io.* java class Main{
 public static void main(String[] args)throws IOException{
  int a,b,d,r;
  String f;
   BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  
   String str = br.readLine(); 
   String[] strAry = str.split(" ");
   a = Integer.parseInt(strAry[0]);  
   b = Integer.parseInt(strAry[1]);   
   d = a/b;
   r = a%b;
   f=String.format("%.5f", ((double)a / (double)b));    
   
   f = String.format("%.5f", ((double)a / (double)b));
   System.out.println(d + " "+ r +" "+ f); 
 }
} Main public static void main(String[] args)throws IOException{
  int a,b,d,r;
  String f;
   BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  
   String str = br.readLine(); 
   String[] strAry = str.split(" ");
   a = Integer.parseInt(strAry[0]);  
   b = Integer.parseInt(strAry[1]);   
   d = a/b;
   r = a%b;
   f=String.format("%.5f", ((double)a / (double)b));    
   
   f = String.format("%.5f", ((double)a / (double)b));
   System.out.println(d + " "+ r +" "+ f); 
 } main {
  int a,b,d,r;
  String f;
   BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  
   String str = br.readLine(); 
   String[] strAry = str.split(" ");
   a = Integer.parseInt(strAry[0]);  
   b = Integer.parseInt(strAry[1]);   
   d = a/b;
   r = a%b;
   f=String.format("%.5f", ((double)a / (double)b));    
   
   f = String.format("%.5f", ((double)a / (double)b));
   System.out.println(d + " "+ r +" "+ f); 
 } int a a b b d d r; r String f; f BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str = br.readLine(); str br.readLine() br.readLine br String[] strAry = str.split(" "); strAry str.split(" ") str.split str " " a = Integer.parseInt(strAry[0]) a Integer.parseInt(strAry[0]) Integer.parseInt Integer strAry[0] strAry 0 b = Integer.parseInt(strAry[1]) b Integer.parseInt(strAry[1]) Integer.parseInt Integer strAry[1] strAry 1 d = a/b d a/b a b r = a%b r a%b a b f=String.format("%.5f", ((double)a / (double)b)) f String.format("%.5f", ((double)a / (double)b)) String.format String "%.5f" ((double)a / (double)b) (double)a (double)b f = String.format("%.5f", ((double)a / (double)b)) f String.format("%.5f", ((double)a / (double)b)) String.format String "%.5f" ((double)a / (double)b) (double)a (double)b System.out.println(d + " "+ r +" "+ f) System.out.println System.out System System.out d + " "+ r +" "+ f " " r d + " "+ r +" "+ f d " " r " " f String[] args args
import java.io.*;

class Main{
 public static void main(String[] args)throws IOException{
  int a,b,d,r;
  String f;
   BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  
   String str = br.readLine(); 
   String[] strAry = str.split(" ");
   a = Integer.parseInt(strAry[0]);  
   b = Integer.parseInt(strAry[1]);   
   d = a/b;
   r = a%b;
   f=String.format("%.5f", ((double)a / (double)b));    
   
   f = String.format("%.5f", ((double)a / (double)b));
   System.out.println(d + " "+ r +" "+ f); 
 }
}