import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws IOException{
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
		
		String s = buf.readLine();
    	String[] strlAry =s.split(" ");
    	for(int i=0;i<strlAry.length;i++){
   	    }
   	    double a = Integer.parseInt(strlAry[0]);
   	    double b = Integer.parseInt(strlAry[1]);

   	    double d = a/b;
   	    double r = a%b;
   	    double f = a/b;
   	    String f2 = String.format("%.5f", f);
   	    System.out.println((int)d+" "+(int)r+" "+f2);
 	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	public static void main(String[] args) throws IOException{
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
		
		String s = buf.readLine();
    	String[] strlAry =s.split(" ");
    	for(int i=0;i<strlAry.length;i++){
   	    }
   	    double a = Integer.parseInt(strlAry[0]);
   	    double b = Integer.parseInt(strlAry[1]);

   	    double d = a/b;
   	    double r = a%b;
   	    double f = a/b;
   	    String f2 = String.format("%.5f", f);
   	    System.out.println((int)d+" "+(int)r+" "+f2);
 	}
} Main public static void main(String[] args) throws IOException{
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
		
		String s = buf.readLine();
    	String[] strlAry =s.split(" ");
    	for(int i=0;i<strlAry.length;i++){
   	    }
   	    double a = Integer.parseInt(strlAry[0]);
   	    double b = Integer.parseInt(strlAry[1]);

   	    double d = a/b;
   	    double r = a%b;
   	    double f = a/b;
   	    String f2 = String.format("%.5f", f);
   	    System.out.println((int)d+" "+(int)r+" "+f2);
 	} main {
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
		
		String s = buf.readLine();
    	String[] strlAry =s.split(" ");
    	for(int i=0;i<strlAry.length;i++){
   	    }
   	    double a = Integer.parseInt(strlAry[0]);
   	    double b = Integer.parseInt(strlAry[1]);

   	    double d = a/b;
   	    double r = a%b;
   	    double f = a/b;
   	    String f2 = String.format("%.5f", f);
   	    System.out.println((int)d+" "+(int)r+" "+f2);
 	} BufferedReader buf = new BufferedReader(new InputStreamReader(System.in)); buf new BufferedReader(new InputStreamReader(System.in)) String s = buf.readLine(); s buf.readLine() buf.readLine buf String[] strlAry =s.split(" "); strlAry s.split(" ") s.split s " " for(int i=0;i<strlAry.length;i++){
   	    } int i=0; int i=0; i 0 i<strlAry.length i strlAry.length strlAry strlAry.length i++ i++ i {
   	    } {
   	    } double a = Integer.parseInt(strlAry[0]); a Integer.parseInt(strlAry[0]) Integer.parseInt Integer strlAry[0] strlAry 0 double b = Integer.parseInt(strlAry[1]); b Integer.parseInt(strlAry[1]) Integer.parseInt Integer strlAry[1] strlAry 1 double d = a/b; d a/b a b double r = a%b; r a%b a b double f = a/b; f a/b a b String f2 = String.format("%.5f", f); f2 String.format("%.5f", f) String.format String "%.5f" f System.out.println((int)d+" "+(int)r+" "+f2) System.out.println System.out System System.out (int)d+" "+(int)r+" "+f2 " " (int)r (int)d+" "+(int)r+" "+f2 (int)d " " (int)r " " f2 String[] args args public class Main {

	public static void main(String[] args) throws IOException{
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
		
		String s = buf.readLine();
    	String[] strlAry =s.split(" ");
    	for(int i=0;i<strlAry.length;i++){
   	    }
   	    double a = Integer.parseInt(strlAry[0]);
   	    double b = Integer.parseInt(strlAry[1]);

   	    double d = a/b;
   	    double r = a%b;
   	    double f = a/b;
   	    String f2 = String.format("%.5f", f);
   	    System.out.println((int)d+" "+(int)r+" "+f2);
 	}
} public class Main {

	public static void main(String[] args) throws IOException{
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
		
		String s = buf.readLine();
    	String[] strlAry =s.split(" ");
    	for(int i=0;i<strlAry.length;i++){
   	    }
   	    double a = Integer.parseInt(strlAry[0]);
   	    double b = Integer.parseInt(strlAry[1]);

   	    double d = a/b;
   	    double r = a%b;
   	    double f = a/b;
   	    String f2 = String.format("%.5f", f);
   	    System.out.println((int)d+" "+(int)r+" "+f2);
 	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws IOException{
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
		
		String s = buf.readLine();
    	String[] strlAry =s.split(" ");
    	for(int i=0;i<strlAry.length;i++){
   	    }
   	    double a = Integer.parseInt(strlAry[0]);
   	    double b = Integer.parseInt(strlAry[1]);

   	    double d = a/b;
   	    double r = a%b;
   	    double f = a/b;
   	    String f2 = String.format("%.5f", f);
   	    System.out.println((int)d+" "+(int)r+" "+f2);
 	}
}