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

public class Main {

	public static void main(String[] args) throws Exception {
        // TODO ?????????????????????????????????????????????
        
        boolean first=true;
        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            String line;
            int i=0;
            while ((line = br.readLine()) != null) {

            	String[] str=line.split(" ");
            	int a=Integer.parseInt(str[0]);
            	int b=Integer.parseInt(str[1]);
            	double x=Integer.parseInt(str[0]);
            	double y=Integer.parseInt(str[1]);
            	String n=String.format("%.5f", (x/y));
            	System.out.println(a/b+" "+a%b+" "+n);
            	
            	break;
            }
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	public static void main(String[] args) throws Exception {
        // TODO ?????????????????????????????????????????????
        
        boolean first=true;
        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            String line;
            int i=0;
            while ((line = br.readLine()) != null) {

            	String[] str=line.split(" ");
            	int a=Integer.parseInt(str[0]);
            	int b=Integer.parseInt(str[1]);
            	double x=Integer.parseInt(str[0]);
            	double y=Integer.parseInt(str[1]);
            	String n=String.format("%.5f", (x/y));
            	System.out.println(a/b+" "+a%b+" "+n);
            	
            	break;
            }
        }
    }
} Main public static void main(String[] args) throws Exception {
        // TODO ?????????????????????????????????????????????
        
        boolean first=true;
        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            String line;
            int i=0;
            while ((line = br.readLine()) != null) {

            	String[] str=line.split(" ");
            	int a=Integer.parseInt(str[0]);
            	int b=Integer.parseInt(str[1]);
            	double x=Integer.parseInt(str[0]);
            	double y=Integer.parseInt(str[1]);
            	String n=String.format("%.5f", (x/y));
            	System.out.println(a/b+" "+a%b+" "+n);
            	
            	break;
            }
        }
    } main {
        // TODO ?????????????????????????????????????????????
        
        boolean first=true;
        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            String line;
            int i=0;
            while ((line = br.readLine()) != null) {

            	String[] str=line.split(" ");
            	int a=Integer.parseInt(str[0]);
            	int b=Integer.parseInt(str[1]);
            	double x=Integer.parseInt(str[0]);
            	double y=Integer.parseInt(str[1]);
            	String n=String.format("%.5f", (x/y));
            	System.out.println(a/b+" "+a%b+" "+n);
            	
            	break;
            }
        }
    } boolean first=true; first true try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            String line;
            int i=0;
            while ((line = br.readLine()) != null) {

            	String[] str=line.split(" ");
            	int a=Integer.parseInt(str[0]);
            	int b=Integer.parseInt(str[1]);
            	double x=Integer.parseInt(str[0]);
            	double y=Integer.parseInt(str[1]);
            	String n=String.format("%.5f", (x/y));
            	System.out.println(a/b+" "+a%b+" "+n);
            	
            	break;
            }
        } {
            String line;
            int i=0;
            while ((line = br.readLine()) != null) {

            	String[] str=line.split(" ");
            	int a=Integer.parseInt(str[0]);
            	int b=Integer.parseInt(str[1]);
            	double x=Integer.parseInt(str[0]);
            	double y=Integer.parseInt(str[1]);
            	String n=String.format("%.5f", (x/y));
            	System.out.println(a/b+" "+a%b+" "+n);
            	
            	break;
            }
        } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) new BufferedReader(new InputStreamReader(System.in)) String line; line int i=0; i 0 while ((line = br.readLine()) != null) {

            	String[] str=line.split(" ");
            	int a=Integer.parseInt(str[0]);
            	int b=Integer.parseInt(str[1]);
            	double x=Integer.parseInt(str[0]);
            	double y=Integer.parseInt(str[1]);
            	String n=String.format("%.5f", (x/y));
            	System.out.println(a/b+" "+a%b+" "+n);
            	
            	break;
            } (line = br.readLine()) != null (line = br.readLine()) line br.readLine() br.readLine br null {

            	String[] str=line.split(" ");
            	int a=Integer.parseInt(str[0]);
            	int b=Integer.parseInt(str[1]);
            	double x=Integer.parseInt(str[0]);
            	double y=Integer.parseInt(str[1]);
            	String n=String.format("%.5f", (x/y));
            	System.out.println(a/b+" "+a%b+" "+n);
            	
            	break;
            } String[] str=line.split(" "); str line.split(" ") line.split line " " int a=Integer.parseInt(str[0]); a Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 int b=Integer.parseInt(str[1]); b Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 double x=Integer.parseInt(str[0]); x Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 double y=Integer.parseInt(str[1]); y Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 String n=String.format("%.5f", (x/y)); n String.format("%.5f", (x/y)) String.format String "%.5f" (x/y) x y System.out.println(a/b+" "+a%b+" "+n) System.out.println System.out System System.out a/b+" "+a%b+" "+n " " a%b a/b+" "+a%b+" "+n a/b a b " " a%b a b " " n break; String[] args args public class Main {

	public static void main(String[] args) throws Exception {
        // TODO ?????????????????????????????????????????????
        
        boolean first=true;
        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            String line;
            int i=0;
            while ((line = br.readLine()) != null) {

            	String[] str=line.split(" ");
            	int a=Integer.parseInt(str[0]);
            	int b=Integer.parseInt(str[1]);
            	double x=Integer.parseInt(str[0]);
            	double y=Integer.parseInt(str[1]);
            	String n=String.format("%.5f", (x/y));
            	System.out.println(a/b+" "+a%b+" "+n);
            	
            	break;
            }
        }
    }
} public class Main {

	public static void main(String[] args) throws Exception {
        // TODO ?????????????????????????????????????????????
        
        boolean first=true;
        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            String line;
            int i=0;
            while ((line = br.readLine()) != null) {

            	String[] str=line.split(" ");
            	int a=Integer.parseInt(str[0]);
            	int b=Integer.parseInt(str[1]);
            	double x=Integer.parseInt(str[0]);
            	double y=Integer.parseInt(str[1]);
            	String n=String.format("%.5f", (x/y));
            	System.out.println(a/b+" "+a%b+" "+n);
            	
            	break;
            }
        }
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws Exception {
        // TODO ?????????????????????????????????????????????
        
        boolean first=true;
        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            String line;
            int i=0;
            while ((line = br.readLine()) != null) {

            	String[] str=line.split(" ");
            	int a=Integer.parseInt(str[0]);
            	int b=Integer.parseInt(str[1]);
            	double x=Integer.parseInt(str[0]);
            	double y=Integer.parseInt(str[1]);
            	String n=String.format("%.5f", (x/y));
            	System.out.println(a/b+" "+a%b+" "+n);
            	
            	break;
            }
        }
    }
}