import java.util.Scanner;

class Main{
    public static void main(String[] args){
        int a,b,d,r;
        double f;
    	//?¨??????\??????????????????????????§????????????
		Scanner scanner = new Scanner(System.in);

		a = scanner.nextInt();
    	b = scanner.nextInt();

    	d = a/b;
    	r = a%b;
    	//?????°????¨?????????????int???????????£??????
    	f = (double)a/b;

    	System.out.printf("%d %d %5f",d,r,f);
    	scanner.close();
    }
} import java.util.Scanner; Scanner java.util class Main{
    public static void main(String[] args){
        int a,b,d,r;
        double f;
    	//?¨??????\??????????????????????????§????????????
		Scanner scanner = new Scanner(System.in);

		a = scanner.nextInt();
    	b = scanner.nextInt();

    	d = a/b;
    	r = a%b;
    	//?????°????¨?????????????int???????????£??????
    	f = (double)a/b;

    	System.out.printf("%d %d %5f",d,r,f);
    	scanner.close();
    }
} Main public static void main(String[] args){
        int a,b,d,r;
        double f;
    	//?¨??????\??????????????????????????§????????????
		Scanner scanner = new Scanner(System.in);

		a = scanner.nextInt();
    	b = scanner.nextInt();

    	d = a/b;
    	r = a%b;
    	//?????°????¨?????????????int???????????£??????
    	f = (double)a/b;

    	System.out.printf("%d %d %5f",d,r,f);
    	scanner.close();
    } main {
        int a,b,d,r;
        double f;
    	//?¨??????\??????????????????????????§????????????
		Scanner scanner = new Scanner(System.in);

		a = scanner.nextInt();
    	b = scanner.nextInt();

    	d = a/b;
    	r = a%b;
    	//?????°????¨?????????????int???????????£??????
    	f = (double)a/b;

    	System.out.printf("%d %d %5f",d,r,f);
    	scanner.close();
    } int a a b b d d r; r double f; f Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) a = scanner.nextInt() a scanner.nextInt() scanner.nextInt scanner b = scanner.nextInt() b scanner.nextInt() scanner.nextInt scanner d = a/b d a/b a b r = a%b r a%b a b f = (double)a/b f (double)a/b (double)a b System.out.printf("%d %d %5f",d,r,f) System.out.printf System.out System System.out "%d %d %5f" d r f scanner.close() scanner.close scanner String[] args args
import java.util.Scanner;

class Main{
    public static void main(String[] args){
        int a,b,d,r;
        double f;
    	//?¨??????\??????????????????????????§????????????
		Scanner scanner = new Scanner(System.in);

		a = scanner.nextInt();
    	b = scanner.nextInt();

    	d = a/b;
    	r = a%b;
    	//?????°????¨?????????????int???????????£??????
    	f = (double)a/b;

    	System.out.printf("%d %d %5f",d,r,f);
    	scanner.close();
    }
}