import java.util.Scanner;

public class Main {


    public static void main(String[] args){
		Scanner scan = new Scanner(System.in);

		long d, r;//d = ??????r = ?????????
		double f;//f = ???????°???°
		long a = scan.nextInt();//a = ??????????????°
		int b = scan.nextInt();//b = ????????°

		d = a / b;
		r = a % b;
		f = (double)a / b;

		System.out.println(String.format("%d %d %f", d, r, f));
		
        scan.close();
    }

} import java.util.Scanner; Scanner java.util public class Main {


    public static void main(String[] args){
		Scanner scan = new Scanner(System.in);

		long d, r;//d = ??????r = ?????????
		double f;//f = ???????°???°
		long a = scan.nextInt();//a = ??????????????°
		int b = scan.nextInt();//b = ????????°

		d = a / b;
		r = a % b;
		f = (double)a / b;

		System.out.println(String.format("%d %d %f", d, r, f));
		
        scan.close();
    }

} Main public static void main(String[] args){
		Scanner scan = new Scanner(System.in);

		long d, r;//d = ??????r = ?????????
		double f;//f = ???????°???°
		long a = scan.nextInt();//a = ??????????????°
		int b = scan.nextInt();//b = ????????°

		d = a / b;
		r = a % b;
		f = (double)a / b;

		System.out.println(String.format("%d %d %f", d, r, f));
		
        scan.close();
    } main {
		Scanner scan = new Scanner(System.in);

		long d, r;//d = ??????r = ?????????
		double f;//f = ???????°???°
		long a = scan.nextInt();//a = ??????????????°
		int b = scan.nextInt();//b = ????????°

		d = a / b;
		r = a % b;
		f = (double)a / b;

		System.out.println(String.format("%d %d %f", d, r, f));
		
        scan.close();
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) long d d r; r double f; f long a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan 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.println(String.format("%d %d %f", d, r, f)) System.out.println System.out System System.out String.format("%d %d %f", d, r, f) String.format String "%d %d %f" d r f scan.close() scan.close scan String[] args args public class Main {


    public static void main(String[] args){
		Scanner scan = new Scanner(System.in);

		long d, r;//d = ??????r = ?????????
		double f;//f = ???????°???°
		long a = scan.nextInt();//a = ??????????????°
		int b = scan.nextInt();//b = ????????°

		d = a / b;
		r = a % b;
		f = (double)a / b;

		System.out.println(String.format("%d %d %f", d, r, f));
		
        scan.close();
    }

} public class Main {


    public static void main(String[] args){
		Scanner scan = new Scanner(System.in);

		long d, r;//d = ??????r = ?????????
		double f;//f = ???????°???°
		long a = scan.nextInt();//a = ??????????????°
		int b = scan.nextInt();//b = ????????°

		d = a / b;
		r = a % b;
		f = (double)a / b;

		System.out.println(String.format("%d %d %f", d, r, f));
		
        scan.close();
    }

} Main
import java.util.Scanner;

public class Main {


    public static void main(String[] args){
		Scanner scan = new Scanner(System.in);

		long d, r;//d = ??????r = ?????????
		double f;//f = ???????°???°
		long a = scan.nextInt();//a = ??????????????°
		int b = scan.nextInt();//b = ????????°

		d = a / b;
		r = a % b;
		f = (double)a / b;

		System.out.println(String.format("%d %d %f", d, r, f));
		
        scan.close();
    }

}