import java.util.Scanner;

public class Main {

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

		double z = (double)x / (double)y;
		String zz =  String.format("%.5f", z);
		System.out.println(x / y + " " + x % y + " " + zz);
	}
} import java.util.Scanner; Scanner java.util public class Main {

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

		double z = (double)x / (double)y;
		String zz =  String.format("%.5f", z);
		System.out.println(x / y + " " + x % y + " " + zz);
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int x = scan.nextInt();
		int y = scan.nextInt();

		double z = (double)x / (double)y;
		String zz =  String.format("%.5f", z);
		System.out.println(x / y + " " + x % y + " " + zz);
	} main {
		Scanner scan = new Scanner(System.in);
		int x = scan.nextInt();
		int y = scan.nextInt();

		double z = (double)x / (double)y;
		String zz =  String.format("%.5f", z);
		System.out.println(x / y + " " + x % y + " " + zz);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int x = scan.nextInt(); x scan.nextInt() scan.nextInt scan int y = scan.nextInt(); y scan.nextInt() scan.nextInt scan double z = (double)x / (double)y; z (double)x / (double)y (double)x (double)y String zz =  String.format("%.5f", z); zz String.format("%.5f", z) String.format String "%.5f" z System.out.println(x / y + " " + x % y + " " + zz) System.out.println System.out System System.out x / y + " " + x % y + " " + zz " " x % y x / y + " " + x % y + " " + zz x / y x y " " x % y x y " " zz String[] args args public class Main {

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

		double z = (double)x / (double)y;
		String zz =  String.format("%.5f", z);
		System.out.println(x / y + " " + x % y + " " + zz);
	}
} public class Main {

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

		double z = (double)x / (double)y;
		String zz =  String.format("%.5f", z);
		System.out.println(x / y + " " + x % y + " " + zz);
	}
} Main
import java.util.Scanner;

public class Main {

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

		double z = (double)x / (double)y;
		String zz =  String.format("%.5f", z);
		System.out.println(x / y + " " + x % y + " " + zz);
	}
}