import java.text.DecimalFormat;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		long a = scan.nextInt();
		long b = scan.nextInt();
		int d = (int) (a/b);
		int r = (int) (a%b);
		double f = (double)a/b;
		DecimalFormat df2 = new DecimalFormat("0.00000000");


		System.out.println(d+" "+r+" "+df2.format(f));

	}

} import java.text.DecimalFormat; DecimalFormat java.text import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		long a = scan.nextInt();
		long b = scan.nextInt();
		int d = (int) (a/b);
		int r = (int) (a%b);
		double f = (double)a/b;
		DecimalFormat df2 = new DecimalFormat("0.00000000");


		System.out.println(d+" "+r+" "+df2.format(f));

	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		long a = scan.nextInt();
		long b = scan.nextInt();
		int d = (int) (a/b);
		int r = (int) (a%b);
		double f = (double)a/b;
		DecimalFormat df2 = new DecimalFormat("0.00000000");


		System.out.println(d+" "+r+" "+df2.format(f));

	} main {
		Scanner scan = new Scanner(System.in);
		long a = scan.nextInt();
		long b = scan.nextInt();
		int d = (int) (a/b);
		int r = (int) (a%b);
		double f = (double)a/b;
		DecimalFormat df2 = new DecimalFormat("0.00000000");


		System.out.println(d+" "+r+" "+df2.format(f));

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) long a = scan.nextInt(); a scan.nextInt() scan.nextInt scan long b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int d = (int) (a/b); d (int) (a/b) a b int r = (int) (a%b); r (int) (a%b) a b double f = (double)a/b; f (double)a/b (double)a b DecimalFormat df2 = new DecimalFormat("0.00000000"); df2 new DecimalFormat("0.00000000") System.out.println(d+" "+r+" "+df2.format(f)) System.out.println System.out System System.out d+" "+r+" "+df2.format(f) " " r d+" "+r+" "+df2.format(f) d " " r " " df2.format(f) df2.format df2 f String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		long a = scan.nextInt();
		long b = scan.nextInt();
		int d = (int) (a/b);
		int r = (int) (a%b);
		double f = (double)a/b;
		DecimalFormat df2 = new DecimalFormat("0.00000000");


		System.out.println(d+" "+r+" "+df2.format(f));

	}

} public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		long a = scan.nextInt();
		long b = scan.nextInt();
		int d = (int) (a/b);
		int r = (int) (a%b);
		double f = (double)a/b;
		DecimalFormat df2 = new DecimalFormat("0.00000000");


		System.out.println(d+" "+r+" "+df2.format(f));

	}

} Main
import java.text.DecimalFormat;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		long a = scan.nextInt();
		long b = scan.nextInt();
		int d = (int) (a/b);
		int r = (int) (a%b);
		double f = (double)a/b;
		DecimalFormat df2 = new DecimalFormat("0.00000000");


		System.out.println(d+" "+r+" "+df2.format(f));

	}

}