import java.util.Scanner;

public class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		double a = sc.nextDouble();
		double b = sc.nextInt();

		long d = (int)(a/b);
		long r = (int)(a%b);
		double f = a/b;
		//System.out.println(d+" "+r+" "+f);
		System.out.printf("%d %d %.7f%n",d,r,f);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		double a = sc.nextDouble();
		double b = sc.nextInt();

		long d = (int)(a/b);
		long r = (int)(a%b);
		double f = a/b;
		//System.out.println(d+" "+r+" "+f);
		System.out.printf("%d %d %.7f%n",d,r,f);
	}
} Main public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		double a = sc.nextDouble();
		double b = sc.nextInt();

		long d = (int)(a/b);
		long r = (int)(a%b);
		double f = a/b;
		//System.out.println(d+" "+r+" "+f);
		System.out.printf("%d %d %.7f%n",d,r,f);
	} main {
		Scanner sc = new Scanner(System.in);
		double a = sc.nextDouble();
		double b = sc.nextInt();

		long d = (int)(a/b);
		long r = (int)(a%b);
		double f = a/b;
		//System.out.println(d+" "+r+" "+f);
		System.out.printf("%d %d %.7f%n",d,r,f);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) double a = sc.nextDouble(); a sc.nextDouble() sc.nextDouble sc double b = sc.nextInt(); b sc.nextInt() sc.nextInt sc long d = (int)(a/b); d (int)(a/b) a b long r = (int)(a%b); r (int)(a%b) a b double f = a/b; f a/b a b System.out.printf("%d %d %.7f%n",d,r,f) System.out.printf System.out System System.out "%d %d %.7f%n" d r f String[] args args public class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		double a = sc.nextDouble();
		double b = sc.nextInt();

		long d = (int)(a/b);
		long r = (int)(a%b);
		double f = a/b;
		//System.out.println(d+" "+r+" "+f);
		System.out.printf("%d %d %.7f%n",d,r,f);
	}
} public class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		double a = sc.nextDouble();
		double b = sc.nextInt();

		long d = (int)(a/b);
		long r = (int)(a%b);
		double f = a/b;
		//System.out.println(d+" "+r+" "+f);
		System.out.printf("%d %d %.7f%n",d,r,f);
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		double a = sc.nextDouble();
		double b = sc.nextInt();

		long d = (int)(a/b);
		long r = (int)(a%b);
		double f = a/b;
		//System.out.println(d+" "+r+" "+f);
		System.out.printf("%d %d %.7f%n",d,r,f);
	}
}