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

public class Main {
	public static void main(String[] args) {
		InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
        int x, y, d , r;
        double f;
        try{
        	String[] list = br.readLine().split(" ");
        	x = Integer.parseInt(list[0]);
        	y = Integer.parseInt(list[1]);
        	
        	d = x / y;
        	r = x % y;
        	f = (double)x / (double)y;
        	DecimalFormat df = new DecimalFormat("0.00000");
            System.out.println(d + " " + r + " " + df.format(f));
        }
        catch(IOException e){
        	e.printStackTrace();
        }
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.text.DecimalFormat; DecimalFormat java.text public class Main {
	public static void main(String[] args) {
		InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
        int x, y, d , r;
        double f;
        try{
        	String[] list = br.readLine().split(" ");
        	x = Integer.parseInt(list[0]);
        	y = Integer.parseInt(list[1]);
        	
        	d = x / y;
        	r = x % y;
        	f = (double)x / (double)y;
        	DecimalFormat df = new DecimalFormat("0.00000");
            System.out.println(d + " " + r + " " + df.format(f));
        }
        catch(IOException e){
        	e.printStackTrace();
        }
	}

} Main public static void main(String[] args) {
		InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
        int x, y, d , r;
        double f;
        try{
        	String[] list = br.readLine().split(" ");
        	x = Integer.parseInt(list[0]);
        	y = Integer.parseInt(list[1]);
        	
        	d = x / y;
        	r = x % y;
        	f = (double)x / (double)y;
        	DecimalFormat df = new DecimalFormat("0.00000");
            System.out.println(d + " " + r + " " + df.format(f));
        }
        catch(IOException e){
        	e.printStackTrace();
        }
	} main {
		InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
        int x, y, d , r;
        double f;
        try{
        	String[] list = br.readLine().split(" ");
        	x = Integer.parseInt(list[0]);
        	y = Integer.parseInt(list[1]);
        	
        	d = x / y;
        	r = x % y;
        	f = (double)x / (double)y;
        	DecimalFormat df = new DecimalFormat("0.00000");
            System.out.println(d + " " + r + " " + df.format(f));
        }
        catch(IOException e){
        	e.printStackTrace();
        }
	} InputStreamReader isr = new InputStreamReader(System.in); isr new InputStreamReader(System.in) BufferedReader br = new BufferedReader(isr); br new BufferedReader(isr) int x x y y d d r; r double f; f try{
        	String[] list = br.readLine().split(" ");
        	x = Integer.parseInt(list[0]);
        	y = Integer.parseInt(list[1]);
        	
        	d = x / y;
        	r = x % y;
        	f = (double)x / (double)y;
        	DecimalFormat df = new DecimalFormat("0.00000");
            System.out.println(d + " " + r + " " + df.format(f));
        }
        catch(IOException e){
        	e.printStackTrace();
        } catch(IOException e){
        	e.printStackTrace();
        } IOException e {
        	e.printStackTrace();
        } e.printStackTrace() e.printStackTrace e {
        	String[] list = br.readLine().split(" ");
        	x = Integer.parseInt(list[0]);
        	y = Integer.parseInt(list[1]);
        	
        	d = x / y;
        	r = x % y;
        	f = (double)x / (double)y;
        	DecimalFormat df = new DecimalFormat("0.00000");
            System.out.println(d + " " + r + " " + df.format(f));
        } String[] list = br.readLine().split(" "); list br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " x = Integer.parseInt(list[0]) x Integer.parseInt(list[0]) Integer.parseInt Integer list[0] list 0 y = Integer.parseInt(list[1]) y Integer.parseInt(list[1]) Integer.parseInt Integer list[1] list 1 d = x / y d x / y x y r = x % y r x % y x y f = (double)x / (double)y f (double)x / (double)y (double)x (double)y DecimalFormat df = new DecimalFormat("0.00000"); df new DecimalFormat("0.00000") System.out.println(d + " " + r + " " + df.format(f)) System.out.println System.out System System.out d + " " + r + " " + df.format(f) " " r d + " " + r + " " + df.format(f) d " " r " " df.format(f) df.format df f String[] args args public class Main {
	public static void main(String[] args) {
		InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
        int x, y, d , r;
        double f;
        try{
        	String[] list = br.readLine().split(" ");
        	x = Integer.parseInt(list[0]);
        	y = Integer.parseInt(list[1]);
        	
        	d = x / y;
        	r = x % y;
        	f = (double)x / (double)y;
        	DecimalFormat df = new DecimalFormat("0.00000");
            System.out.println(d + " " + r + " " + df.format(f));
        }
        catch(IOException e){
        	e.printStackTrace();
        }
	}

} public class Main {
	public static void main(String[] args) {
		InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
        int x, y, d , r;
        double f;
        try{
        	String[] list = br.readLine().split(" ");
        	x = Integer.parseInt(list[0]);
        	y = Integer.parseInt(list[1]);
        	
        	d = x / y;
        	r = x % y;
        	f = (double)x / (double)y;
        	DecimalFormat df = new DecimalFormat("0.00000");
            System.out.println(d + " " + r + " " + df.format(f));
        }
        catch(IOException e){
        	e.printStackTrace();
        }
	}

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.text.DecimalFormat;

public class Main {
	public static void main(String[] args) {
		InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
        int x, y, d , r;
        double f;
        try{
        	String[] list = br.readLine().split(" ");
        	x = Integer.parseInt(list[0]);
        	y = Integer.parseInt(list[1]);
        	
        	d = x / y;
        	r = x % y;
        	f = (double)x / (double)y;
        	DecimalFormat df = new DecimalFormat("0.00000");
            System.out.println(d + " " + r + " " + df.format(f));
        }
        catch(IOException e){
        	e.printStackTrace();
        }
	}

}