import java.io.IOException;
import java.io.InputStreamReader;
import java.io.* ;
 
class Main{
  public static void main(String[] args)throws IOException{
      
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));// ??\?????????
    String str = br.readLine();
  
    String[] strAry = str.split(" ");
    int a = Integer.parseInt(strAry[0]);
  	int b = Integer.parseInt(strAry[1]);
  	int d= a / b;
  	int r= a%b ;
  	double f = (double)a/b ;
  	System.out.printf(d + " " + r + " " + "%.5f\n",f );
  	
  	}
}	 import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.* ; io.* java class Main{
  public static void main(String[] args)throws IOException{
      
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));// ??\?????????
    String str = br.readLine();
  
    String[] strAry = str.split(" ");
    int a = Integer.parseInt(strAry[0]);
  	int b = Integer.parseInt(strAry[1]);
  	int d= a / b;
  	int r= a%b ;
  	double f = (double)a/b ;
  	System.out.printf(d + " " + r + " " + "%.5f\n",f );
  	
  	}
} Main public static void main(String[] args)throws IOException{
      
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));// ??\?????????
    String str = br.readLine();
  
    String[] strAry = str.split(" ");
    int a = Integer.parseInt(strAry[0]);
  	int b = Integer.parseInt(strAry[1]);
  	int d= a / b;
  	int r= a%b ;
  	double f = (double)a/b ;
  	System.out.printf(d + " " + r + " " + "%.5f\n",f );
  	
  	} main {
      
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));// ??\?????????
    String str = br.readLine();
  
    String[] strAry = str.split(" ");
    int a = Integer.parseInt(strAry[0]);
  	int b = Integer.parseInt(strAry[1]);
  	int d= a / b;
  	int r= a%b ;
  	double f = (double)a/b ;
  	System.out.printf(d + " " + r + " " + "%.5f\n",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 " " int a = Integer.parseInt(strAry[0]); a Integer.parseInt(strAry[0]) Integer.parseInt Integer strAry[0] strAry 0 int b = Integer.parseInt(strAry[1]); b Integer.parseInt(strAry[1]) Integer.parseInt Integer strAry[1] strAry 1 int d= a / b; d a / b a b int r= a%b ; r a%b a b double f = (double)a/b ; f (double)a/b (double)a b System.out.printf(d + " " + r + " " + "%.5f\n",f ) System.out.printf System.out System System.out d + " " + r + " " + "%.5f\n" " " r d + " " + r + " " + "%.5f\n" d " " r " " "%.5f\n" f String[] args args
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.* ;
 
class Main{
  public static void main(String[] args)throws IOException{
      
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));// ??\?????????
    String str = br.readLine();
  
    String[] strAry = str.split(" ");
    int a = Integer.parseInt(strAry[0]);
  	int b = Integer.parseInt(strAry[1]);
  	int d= a / b;
  	int r= a%b ;
  	double f = (double)a/b ;
  	System.out.printf(d + " " + r + " " + "%.5f\n",f );
  	
  	}
}	