import java.util.*;
class Main{
    Scanner sc=new Scanner(System.in);
    void main(){
	int a=sc.nextInt();
	int b=sc.nextInt();
	int d=a/b;
	int r=a%b;
	double f= (double)a/b;
	System.out.print(d+" "+r+" ");
	System.out.printf("%.5f", f );
	System.out.println();
    }
    public static void main(String[]ag){
	new Main().main();
    }
} import java.util.*; util.* java class Main{
    Scanner sc=new Scanner(System.in);
    void main(){
	int a=sc.nextInt();
	int b=sc.nextInt();
	int d=a/b;
	int r=a%b;
	double f= (double)a/b;
	System.out.print(d+" "+r+" ");
	System.out.printf("%.5f", f );
	System.out.println();
    }
    public static void main(String[]ag){
	new Main().main();
    }
} Main Scanner sc=new Scanner(System.in); sc new Scanner(System.in) void main(){
	int a=sc.nextInt();
	int b=sc.nextInt();
	int d=a/b;
	int r=a%b;
	double f= (double)a/b;
	System.out.print(d+" "+r+" ");
	System.out.printf("%.5f", f );
	System.out.println();
    } main {
	int a=sc.nextInt();
	int b=sc.nextInt();
	int d=a/b;
	int r=a%b;
	double f= (double)a/b;
	System.out.print(d+" "+r+" ");
	System.out.printf("%.5f", f );
	System.out.println();
    } int a=sc.nextInt(); a sc.nextInt() sc.nextInt sc int b=sc.nextInt(); b sc.nextInt() sc.nextInt sc 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.print(d+" "+r+" ") System.out.print System.out System System.out d+" "+r+" " r d+" "+r+" " d " " r " " System.out.printf("%.5f", f ) System.out.printf System.out System System.out "%.5f" f System.out.println() System.out.println System.out System System.out public static void main(String[]ag){
	new Main().main();
    } main {
	new Main().main();
    } new Main().main() new Main().main new Main() String[]ag ag
import java.util.*;
class Main{
    Scanner sc=new Scanner(System.in);
    void main(){
	int a=sc.nextInt();
	int b=sc.nextInt();
	int d=a/b;
	int r=a%b;
	double f= (double)a/b;
	System.out.print(d+" "+r+" ");
	System.out.printf("%.5f", f );
	System.out.println();
    }
    public static void main(String[]ag){
	new Main().main();
    }
}