import java.io.IOException;
import java.util.Scanner;

class Main {
	public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		double d = (double)a / b;
		String str = String.format("%.5f", d);
		System.out.println((a / b) + " " + (a % b) + " " + str);
	}
} import java.io.IOException; IOException java.io import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		double d = (double)a / b;
		String str = String.format("%.5f", d);
		System.out.println((a / b) + " " + (a % b) + " " + str);
	}
} Main public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		double d = (double)a / b;
		String str = String.format("%.5f", d);
		System.out.println((a / b) + " " + (a % b) + " " + str);
	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		double d = (double)a / b;
		String str = String.format("%.5f", d);
		System.out.println((a / b) + " " + (a % b) + " " + str);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc double d = (double)a / b; d (double)a / b (double)a b String str = String.format("%.5f", d); str String.format("%.5f", d) String.format String "%.5f" d System.out.println((a / b) + " " + (a % b) + " " + str) System.out.println System.out System System.out (a / b) + " " + (a % b) + " " + str " " (a % b) (a / b) + " " + (a % b) + " " + str (a / b) a b " " (a % b) a b " " str String[] args args
import java.io.IOException;
import java.util.Scanner;

class Main {
	public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		double d = (double)a / b;
		String str = String.format("%.5f", d);
		System.out.println((a / b) + " " + (a % b) + " " + str);
	}
}