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