import java.util.Scanner;

class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
	    int b = scan.nextInt();

	    int d = a / b;
	    int r = a % b;
	    double  f = ((double)a /(double)b);
	    System.out.print(d + " " + r + " ");
	    System.out.printf("%.5f",f);

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

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
	    int b = scan.nextInt();

	    int d = a / b;
	    int r = a % b;
	    double  f = ((double)a /(double)b);
	    System.out.print(d + " " + r + " ");
	    System.out.printf("%.5f",f);

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

		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
	    int b = scan.nextInt();

	    int d = a / b;
	    int r = a % b;
	    double  f = ((double)a /(double)b);
	    System.out.print(d + " " + r + " ");
	    System.out.printf("%.5f",f);

	 
	} main {

		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
	    int b = scan.nextInt();

	    int d = a / b;
	    int r = a % b;
	    double  f = ((double)a /(double)b);
	    System.out.print(d + " " + r + " ");
	    System.out.printf("%.5f",f);

	 
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int d = a / b; d a / b a b int r = a % b; r a % b a b double  f = ((double)a /(double)b); f ((double)a /(double)b) (double)a (double)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 String[] args args
import java.util.Scanner;

class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
	    int b = scan.nextInt();

	    int d = a / b;
	    int r = a % b;
	    double  f = ((double)a /(double)b);
	    System.out.print(d + " " + r + " ");
	    System.out.printf("%.5f",f);

	 
	}
}