import java.util.*;

class Main {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		System.out.printf("%d %d %f\n",a/b,a%b,(double)a/b);
	}
} import java.util.*; util.* java class Main {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		System.out.printf("%d %d %f\n",a/b,a%b,(double)a/b);
	}
} Main public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		System.out.printf("%d %d %f\n",a/b,a%b,(double)a/b);
	} main {
		Scanner stdIn = new Scanner(System.in);
		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		System.out.printf("%d %d %f\n",a/b,a%b,(double)a/b);
	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int a = stdIn.nextInt(); a stdIn.nextInt() stdIn.nextInt stdIn int b = stdIn.nextInt(); b stdIn.nextInt() stdIn.nextInt stdIn System.out.printf("%d %d %f\n",a/b,a%b,(double)a/b) System.out.printf System.out System System.out "%d %d %f\n" a/b a b a%b a b (double)a/b (double)a b String[] args args
import java.util.*;

class Main {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		System.out.printf("%d %d %f\n",a/b,a%b,(double)a/b);
	}
}