import java.util.Scanner;

public class Main {

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

			int div = a / b;
			int rem = a % b;
			double flo = (double)a / (double)b;

			String f = String.format("%.5f",flo);
			System.out.println(div + " " + rem + " " + f);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {

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

			int div = a / b;
			int rem = a % b;
			double flo = (double)a / (double)b;

			String f = String.format("%.5f",flo);
			System.out.println(div + " " + rem + " " + f);
		}
	}
} Main public static void main(String[] args) {
		try(Scanner scan = new Scanner(System.in)) {
			int a = scan.nextInt();
			int b = scan.nextInt();

			int div = a / b;
			int rem = a % b;
			double flo = (double)a / (double)b;

			String f = String.format("%.5f",flo);
			System.out.println(div + " " + rem + " " + f);
		}
	} main {
		try(Scanner scan = new Scanner(System.in)) {
			int a = scan.nextInt();
			int b = scan.nextInt();

			int div = a / b;
			int rem = a % b;
			double flo = (double)a / (double)b;

			String f = String.format("%.5f",flo);
			System.out.println(div + " " + rem + " " + f);
		}
	} try(Scanner scan = new Scanner(System.in)) {
			int a = scan.nextInt();
			int b = scan.nextInt();

			int div = a / b;
			int rem = a % b;
			double flo = (double)a / (double)b;

			String f = String.format("%.5f",flo);
			System.out.println(div + " " + rem + " " + f);
		} {
			int a = scan.nextInt();
			int b = scan.nextInt();

			int div = a / b;
			int rem = a % b;
			double flo = (double)a / (double)b;

			String f = String.format("%.5f",flo);
			System.out.println(div + " " + rem + " " + f);
		} Scanner scan = new Scanner(System.in) Scanner scan = new Scanner(System.in) 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 div = a / b; div a / b a b int rem = a % b; rem a % b a b double flo = (double)a / (double)b; flo (double)a / (double)b (double)a (double)b String f = String.format("%.5f",flo); f String.format("%.5f",flo) String.format String "%.5f" flo System.out.println(div + " " + rem + " " + f) System.out.println System.out System System.out div + " " + rem + " " + f " " rem div + " " + rem + " " + f div " " rem " " f String[] args args public class Main {

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

			int div = a / b;
			int rem = a % b;
			double flo = (double)a / (double)b;

			String f = String.format("%.5f",flo);
			System.out.println(div + " " + rem + " " + f);
		}
	}
} public class Main {

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

			int div = a / b;
			int rem = a % b;
			double flo = (double)a / (double)b;

			String f = String.format("%.5f",flo);
			System.out.println(div + " " + rem + " " + f);
		}
	}
} Main
import java.util.Scanner;

public class Main {

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

			int div = a / b;
			int rem = a % b;
			double flo = (double)a / (double)b;

			String f = String.format("%.5f",flo);
			System.out.println(div + " " + rem + " " + f);
		}
	}
}