import java.util.*;

class Main{
    Scanner sc = new Scanner(System.in);

    Main(){
	int a=sc.nextInt();
	int b=sc.nextInt();
	System.out.print( (a/b)+" "+(a%b)+" " );
	System.out.printf("%.8f\n", (double)a/b );
    }

    public static void main(String[] args){
	new Main();
    }
} import java.util.*; util.* java class Main{
    Scanner sc = new Scanner(System.in);

    Main(){
	int a=sc.nextInt();
	int b=sc.nextInt();
	System.out.print( (a/b)+" "+(a%b)+" " );
	System.out.printf("%.8f\n", (double)a/b );
    }

    public static void main(String[] args){
	new Main();
    }
} Main Scanner sc = new Scanner(System.in); sc new Scanner(System.in) Main(){
	int a=sc.nextInt();
	int b=sc.nextInt();
	System.out.print( (a/b)+" "+(a%b)+" " );
	System.out.printf("%.8f\n", (double)a/b );
    } Main {
	int a=sc.nextInt();
	int b=sc.nextInt();
	System.out.print( (a/b)+" "+(a%b)+" " );
	System.out.printf("%.8f\n", (double)a/b );
    } int a=sc.nextInt(); a sc.nextInt() sc.nextInt sc int b=sc.nextInt(); b sc.nextInt() sc.nextInt sc System.out.print( (a/b)+" "+(a%b)+" " ) System.out.print System.out System System.out (a/b)+" "+(a%b)+" " (a%b) (a/b)+" "+(a%b)+" " (a/b) a b " " (a%b) a b " " System.out.printf("%.8f\n", (double)a/b ) System.out.printf System.out System System.out "%.8f\n" (double)a/b (double)a b public static void main(String[] args){
	new Main();
    } main {
	new Main();
    } new Main() String[] args args
import java.util.*;

class Main{
    Scanner sc = new Scanner(System.in);

    Main(){
	int a=sc.nextInt();
	int b=sc.nextInt();
	System.out.print( (a/b)+" "+(a%b)+" " );
	System.out.printf("%.8f\n", (double)a/b );
    }

    public static void main(String[] args){
	new Main();
    }
}